This submit only when validate Form() function return true.It is important to validate the form submitted by the user because it can have inappropriate values. The Java Script provides you the facility the validate the form on the client side so processing will be fast than server-side validation.(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.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.This validation can be done on client side instead directly to server.It should be done on client side, because it is very faster than server validation.
Through Java Script, we can validate name, password, email, date, mobile number etc fields.
This article assumes a general understanding of HTML and Java Script.
(16 printed pages) Introduction Getting Started Writing the Validation Script Connecting the Form to the Script Associating Form Fields with Custom Script Code Listing Conclusion When you create forms, providing form validation is useful to ensure that your customers enter valid and complete data.
This example comes from our "JSP - Java Server Pages" training module.
You'll find a description of the topic and some other closely related examples on the "JSP - Java Server Pages" module index page.