PDA

View Full Version : PHP question


ssjskipp
12-11-2005, 04:28 AM
Is there a way to check if an e-mail address is valid or not? like, if a certin string is a valad e-mail?

jsebrech
12-12-2005, 07:47 AM
The page for PHP's preg_match (http://be.php.net/preg_match) command has some examples of doing this (see the user comments at the bottom).

Cota
12-12-2005, 08:37 AM
Just a side note, you can validate an email address through flash as well, using indexOf().

CyanBlue
12-12-2005, 02:02 PM
Just a side note, you should validate the email address in both languages to prevent any sort of 'unexpected' behaviors...

Flash Gordon
12-13-2005, 06:09 AM
there are also "services" that actually validate the email as well, so that Ted12345678909876@hotmail.com would not pass.

ssjskipp
12-17-2005, 12:05 AM
Thanks, but I decided to make it so they can't login, unless they validate their account! And they can't do that, unless they get the e-mail! And, of corse, the only way to get that, is to put an e-mail address that you actually have =]