Validate on Submit
1. Why Validate
Join the Discussion
The action parameter, as usual, specifies the server side script or page that will process the form data once it has been validated (in this instance the generic PHP form processor that I wrote that converts forms into emails).
The other change that you need to make is to the submit button to get it to call your validation routine which in turn will submit the form if it is valid rather than submitting the form directly.
Note that the script and the descriptions of the functions that it contains are rewritten from the "Ask Felgall" website with the permission of the copyright owner.