Form Validation
-
THe above is used to validate a form and then submit the filled out form to a table in mysql. The form is not validated before the contents is submitted to the table. How can I amend the above or my code so that the form is validated first to check for errors then submitted?
-
THe above is used to validate a form and then submit the filled out form to a table in mysql. The form is not validated before the contents is submitted to the table. How can I amend the above or my code so that the form is validated first to check for errors then submitted?
This article should help you out. http://www.w3schools.com/jS/js_form_validation.asp[^]
Matthew Vass QA Analyst mvass@hostmysite.com HostMySite.com
-
THe above is used to validate a form and then submit the filled out form to a table in mysql. The form is not validated before the contents is submitted to the table. How can I amend the above or my code so that the form is validated first to check for errors then submitted?
Then at the end of your formVaildator script when all validation has passed document.forms('form1').submit(); Where the form validator script fails it should: return false; Neonlight