# [EMAIL PROTECTED] / 2007-01-19 10:55:21 +0200:
> From: Don [mailto:[EMAIL PROTECTED] 
> > I'm trying to get this line to validate an email address from a form and it
> > isn't working.
> > 
> > if (ereg("[EMAIL PROTECTED]",$submittedEmail))
> > 
> > The book I'm referencing has this line
> > 
> > if (ereg("[EMAIL PROTECTED]",$submittedEmail))

1. Why did you remove the backslash? (the original was correct)
2. What do you expect the regexp to match?
3. Define "it isn't working".
 
> Try this : http://www.weberdev.com/get_example-3274.html

This will reject addresses that use greylisting, and 600 lines
in a single function is gross.  I wouldn't touch that.
 
-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

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

Reply via email to