Form validation normally used to occur at the server, after the client had entered all the necessary data and then pressed the Submit button.
If the data entered by a client was incorrect or was simply missing, the server would have to send all the data back to the client and request that the form be resubmitted with correct information.
//reported to validate incorrectly: [email protected] as true /[A-Z0-9._% -] @[A-Z0-9-] .
Validating email is a very important point while validating an HTML form. You can modify or rewrite the said regular expression.
a "personal_info" and a domain, that is [email protected] The length of the personal_info part may be up to 64 characters long and domain name may be up to 253 characters. The personal_info part contains the following ASCII characters.
We can validate email address at client side and server side.
To validate email address on client side, we can use java script with regular expression.
First, download the Java Script form validation script here.