toad78 — 2014-07-24T01:38:05-04:00 — #1
<input type="text" name="coupon_code" size="20" maxlength="50" class="coupon"
alt="<?php echo $this->coupon_text ?>" value="<?php echo $this->coupon_text; ?>"
onblur="if(this.value=='') this.value='<?php echo $this->coupon_text; ?>';"
onfocus="if(this.value=='<?php echo $this->coupon_text; ?>') this.value='';" />
The textbox is not required to be filled in, so it is optional.
paul_wilkins — 2014-07-24T01:50:31-04:00 — #2
toad78 — 2014-07-24T04:05:38-04:00 — #3
mittineague — 2014-07-24T04:30:48-04:00 — #4
Never for security or sensitive / private information.
If there is insufficient time between the AJAX returning and the user clicking submit, you could have code make a "you may have won, please wait a short while to find out" type of message,
Then when the AJAX returns the results of the check, show that.
toad78 — 2014-07-24T11:29:04-04:00 — #5
Thank you for the suggestion. I guess I'll head towards that direction then.