> If you're going to validate a [EMAIL PROTECTED] address, why even
> bother? Seriously. There are a 1000 different regular expressions for email
> addresses out there and each of them have flaws to some extent.
> 
> If your application is so important that it requires a valid email address,
> you should send them something to confirm it. Otherwise, just take whatever
> crap they give... if they don't want emails, so be it.
> 
> ---John Holmes...

Hi!

I think it's good to have a preg_match(), ereg(), or some other check.
I also check badwords in emails entered by a form:
if(!eregi("((root)|(admin)|(webmaster)|(postmaster)|(csko)|(r00t)|(r0ot)|(ro0t)|(kernel)|(system)|(sysadmin)|(csko)|(administrator)|(rendszergazda)|(operator))",$email)){
}

Why? Becasuse some people entered [EMAIL PROTECTED] as email :)

csko
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to