PDA

View Full Version : Validate A Form Field With A Word



puppetpimp
03 May 2011, 12:20 PM
I am trying to have a simple 1 text box form.
If the person types in the correct term (promo code)
the confirmation page directs them to the promo page.

If they enter an incorrect term and hit submit, it can either have a javascript popup, or direct them to a "sorry" page whatever.

I used to do this very easily with (gasp) Frontpage, but no one allows extensions anymore :(

locpicker
03 May 2011, 08:36 PM
You can use javascript to do this for you. It can check the submitted information for you and act on if it is true or false.

I do not have the code right off the top of my head but you should be able to find it very easily.