• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

How to do email vaildation in javascript?

Ruriko

New Member
How do you create in javascript to do email vaildation? to check

must contain 1 @
must contain 1 letter before the @
must contain 1 letter after the @
must not contain spaces, slash, colon, comma or semicolon

if the any of the rules are wrong it will alert the user saying "Invalid Email"
 
I say don't use javascript since it can be bypassed, I'd say use a mixture of AJAX & PHP on the textfield and the submit button.
 
Back
Top