If you have such a form on your site, I'm sure that from time to time, you would have received the results of your form with some essential field (like the email address or the visitor's name, or even the feedback itself) omitted. One way around it is to validate the essential fields with a simple Java Script.Note: You do not need to do the things mentioned in this article if you have created your feedback form using the Feedback Form Script Wizard.But this time, the instead of on submitting the form, validations are on field level, i.e. Sure that will be preety interesting to learn and share as well.by Christopher Heng, Many websites, like thesitewizard.com, have a feedback form of some sort so that visitors can make comments to the webmasters.However, client-side validation may not work in all instances.A user may have a browser that doesn't support client-side scripting or may have scripting disabled in the browser.Sending data back and forth between the client and server can cause some delays.
We will create Java Script functions (one for each input field whose value is to validate) which check whether a value submitted by user passes the validation.Note Front Page Server Extensions are a set of programs that provide access to special Front Page features, such as database processing, form processing, hit counters, and other built-in Front Page components that require server-side processing.You can provide custom validation for your forms in two ways: server-side validation and client-side validation.Microsoft® Office Front Page® 2003 allows you to create some custom validation within the form feature.(For more information on how to create form validation using the Front Page form feature, see About creating forms in Front Page 2003.) However, if the form validation provided in Front Page does not suit your needs or the site on which you are working is hosted on a server that does not have Front Page Server Extensions from Microsoft installed, you may need to create custom form validation.
is the external Java Script file which contains the Java Script ocde used to validate the form. Notice that for validation, the Java Script function containing the code to validate is called on the on Submit event of the form. Flowchart : Here is the entire Java Script used for validation of the form.