From: "Red Wingate" <[EMAIL PROTECTED]> > > > > if(strpos($email,'@')) > > > > No, seriously. > > 'Look @ the screen. You will find wonderfull colors there!' > > doesn't look like an e-mail adress, does it ? A basic approch to really > check the syntax would be: > > preg_match("#^\s*[-\w_]+(\.[-\w_]+)[EMAIL PROTECTED](\.[-\w_]+)+\s*$#sim", $email)
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... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php