For example, if you have a form that populates a drop-down list based on the value of another form field, server-side processing may be needed to pull data from a database and populate the drop-down list.Client-side validation provides validation within the browser on client computers through Java Script.Knowing the limits of client-side scripting helps you decide whether to use client-side form validation.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.Most of WYSIWYG (What You See Is What You Get) editors generate some HTML tags for an empty string.
If you want to test this form, change this e-mail address to your own e-mail address.In order to access your form fields in code, you need to assign names to the form and each of the fields. For more information see, NAME Attribute | name Property.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.When referring to Java Script in general, this article uses the generally accepted term "Java Script." However, when referring to documentation on the Microsoft Developer Network (MSDN) Web site, this article uses the term "JScript." Note The previous code specifies an e-mail address for the Action attribute of the form property.For more information, see ACTION Attribute | action Property and form property.
(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.