I want to validate forms on one my websites with PHP or AJAX. I have some basic validations setup. However, there are additional validations I want performed. I need this done asap. Payment by Paypal. 1. only allow numerical values in a field 2. allow only alphanumerical values in a field 3. allow no whitespaces in a field 4. enforce entry of a child_medicare field in LLLLNNNNNNNN format (4 letters followed by 8 numbers) 5. Check that last 2 digits of child_dob_year field (entered YYYY) corresponds to LLLL**NNNNNN range in child_medicare field 6. Check that child_dob_month field (entered MM) corresponds to LLLLNN**NNNN range in child_medicare field 7. Check that child_dob_day field (entered DD) corresponds to LLLLNNNN**NN range in child_medicare field
Yes, this is still active. I'm changing the requirements. I want an AJAX or PHP form validation solution instead.
The site uses the SMARTY template engine and the form is inside a .html template file. I'm debating whether to keep this setup or changeover to something else. Any thoughts?
I think you can keep it that way. Because you're using smarty, i think you'll better choose php as the form validation, not ajax.