PDA

Click to See Complete Forum and Search --> : email validation


Rick Moriani
07-16-2003, 10:25 AM
:confused: I'm after a bit of javaScript to validate email address.
Can anyone can help?

davidhills
07-16-2003, 08:19 PM
Perhaps something as simple as checking for an '@' and at least a '.' would work?

if (document.billing.Email.value != "")
if (document.billing.Email.value.indexOf('@',0) == -1 ||
document.billing.Email.value.indexOf('.',0) == -1)
error += "Please enter a valid email address of the form yourname@host.com." + "\n";

jvanv8
07-26-2003, 06:51 PM
Well, when I want to 'fake' my email I usually just type in
sfakhg@lkjfgh.com
or some other random keystrokes.
You can actually verify a persons email using a SOAP based webservice. It sends a quick check to lkjfgh.com to make sure that the domain exists and that sfakhg has an email account with them

Can't fool it unless you give it someone else's correct email address

Try it
http://beta2.eraserver.net/webservices/mxchecker/mxchecker.asmx?op=CheckEmail

John