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.
The action attribute tells the browser what to do when a user submits the form.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 is a code snippet for basic Java Script to validate email address using a regular expression.This is building on my previous post on how to use regular expressions with j Query. Update 12/05/13: Separated into versions for testing.
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.