This script allows you to have your forms checked or validated before it is submitted.
Validation helps prevent an incomplete form from being submitted.
The JavaScript checks the form on the client side which makes the response instantaneous and will not allow the form to submit until all requirements are met. Take a look at a sample and then see the script below that made it possible. Form Name is the name of the form you specified as noted above. Do not use a space in the name, instead use an underscore. The red lines in the script must be repeated in its entirety for every field you want to validate.