For an alternative approach to client-side form validation, without Java Script, check out our new article on HTML5 Form Validation which is available now in most modern browsers.
When form input is important, it should always be verified using a secure server-side script.
In other words if the first condition fails, the second condition will not be tested and so forth.
function form Validation() // Function that checks whether input text is numeric or not.
function text Numeric(inputtext, alert Msg) // Function that checks whether input text is an alphabetic character or not.
So, just to make sure that user entered the email address in the correct format, it’s necessary to include email validation code inside the validation codes.
A general expression to check valid email address is: /^[w-.
] @[a-z A-Z0-9.] .[a-z A-Z0-9]$/ The expression checks the letters, numbers, and other symbol at a proper sequence.