Here is a many patterns for email checking
http://regxlib.com/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Here is a script that actually connects to their mail server to see if its
valid
Your E-mail Address is
required.");
}
// If the format of the e-mail address is incorrect
elseif ($form_errors["Email_badformat"]) {
echo("Please enter a valid e-mail
address.");
}
// If the mail server
"Marko Mihalec" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> function isEmailInvalid($val)
> {
Note: this only checks that the value follows the format of a valid email
address.
To actually know whether the address works or not, you pretty much have to
sen
function isEmailInvalid($val)
{
// regex for email validation
$pattern =
"/^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/";
// match?
if(preg_match($pattern, $val))
{
return 0;
}
else
{
return 1;
}
}
--
PHP Windows Mailing List (http://www.php.n