CAPTCHA validation not working and form values not being remembered
Hi again,
I'm now having a problem getting the CAPTCHA validation working on my form.
There is already server validation on the page that checks against a duplicate email address and this works fine, however the other validation doesn't.
I have used Form Toolkit to add the captcha field. I then substituted the text box for the captcha code for a spry validation text field with the same id (to include client validation ensuring the field wasn't blank).
I added server validation to check that the value entered in the text box was the same as the session variable that stores the captcha value (making sure I set case-sensitivity to off).
I also added default values for the other fields on the form so that if the captcha validation failed the previously entered values would be remembered (I chosed the validatedentries values for each field).
When I enter an incorrect code the form just re-loads with all fields blank and no validation message is shown. Also, when I enter all details correctly the record doesn't get inserted into the database. Instead the form re-loads with all fields blank.
I've attached my page in a zip file.