This article explains how to provide client-side validation for forms that you create either by hand or by using the form tools within Front Page.
In addition, this article assumes a general understanding of HTML and Java Script, although a thorough understanding is not required.
For example, you may want to ensure that someone inserts a valid e-mail address into a text box, or perhaps you want to ensure that someone fills in certain fields.
Microsoft® Office Front Page® 2003 allows you to create some custom validation within the form feature.
For this reason, client form validation can be faster than server-side validation.
For example, if you use the on Validate attribute to specify a Java Script function to handle input validation, you can also use the on Error attribute to specify a Java Script function to handle a failed validation (that is, when on Validate returns a False value).
You may assign any name you want that is composed of alphanumeric characters (without spaces), but to make writing the code easiest, you should provide a useful, friendly name for each of the fields.
In addition, each of the fields should have a unique name.
If you use the on Validate attribute, you can also use the on Error attribute to specify a Java Script function that handles the validation errors.
Lisa Wollin Microsoft Corporation May 2004 Applies to: Microsoft® Office Front Page® 2003 Microsoft Front Page 2002 Microsoft Front Page 2000 Summary: Learn how validate HTML form fields using Java Script in Microsoft Office Front Page 2003.
(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.