Re: email validation string.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# berber@xxxxxxxxxxxxxxx / 2007-01-19 10:55:21 +0200:
> From: Don [mailto:don.rzeszut@xxxxxxxxx] 
> > I'm trying to get this line to validate an email address from a form and it
> > isn't working.
> > 
> > if (ereg("^.+@.+\..+$",$submittedEmail))
> > 
> > The book I'm referencing has this line
> > 
> > if (ereg("^.+@.+\\..+$",$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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux