Server validation not checking errors
I've got a contact form on a page and the code I am checking validation with is on the same page as once it is validated, I want to enter the form contents into my DB, then email the contents of the form, however, the validation isn't working when I purposely make errors in data entry. I am checking email and captcha form fields.
I have got the validation code on the page being submitted (bike-enquiry.php) and I have left the 'Failed redirect' blank because the form and validation are on the same page.
I have two Validation show ifs (one for email, one for captcha) and the validation page is set as bike-enquiry.php.
My form action is set to bike-enquiry-thanks.php with a method of post and an id of enquiry.
I don't know why it's not working with this all on the one page!
What am I missing? I've attached the page in question for you to check for errors if you need to.