This topic is locked

Don't allow lower value

3/30/2008 2:06:09 PM
PHPRunner General questions
M
mmponline author
  1. I'm stetting up a small bidding interface. When the user click on add to insert his bid for an item, I wan't the system to allow only a bid that is the highest.
    When bid is lower or existing, the if statement must say - "Your bid is lower than the highest bid". When it is higher, the bid must be accepted.
    The value of the field is currency.
  2. Is there a way to refresh the page say every 30 seconds?
    Thanks for any help.
  3. I need to show the highest bid as the totaltype:

    Eg. The current highest bid is... (The highest value from the bidamount field must be shown.

M
mmponline author 4/1/2008

Any suggestions on this?

J
Jane 4/1/2008

Stephan,
please see my answers below:

  1. use Before record added event to check entered value.
  2. this task can be accomplish using some JavaScript. I recommend you to have a look at the javascript timing events:

    http://www.w3schools.com/js/js_timing.asp
  3. to count and show the highest bid on the page use custom event (Insert PHP code snippet option) on the Visual Editor tab. Pull in it from database and print on the page.