I keep forgetting to do the reply to all thing! :)

Here it is for anyone else as well.

if
(!eregi('[EMAIL PROTECTED],5}$',$email))
{

echo 'Invalid email address';

} else {

//do whatever

}

That should do it. Sometimes I get these wrong off
the top of my head.

Silly

>--- "Philip J. Newman" <[EMAIL PROTECTED]>
> wrote:
> > How would i check that an e-mail has the right
> parts
> > in it. for example.
> > 
> > username @ domain . ext
> > 
> > Thanks
> > 
> > / Jim Bob
> > 
> > 
> > 
> > 
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> > 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness,
> live on your desktop!
> http://platinum.yahoo.com
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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

Reply via email to