Re: [PHP] How do i valadate an email address?

2003-03-27 Thread AzFLSite
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



Re: [PHP] How do i valadate an email address?

2003-03-27 Thread Jason Wong
On Thursday 27 March 2003 14:44, Philip J. Newman wrote:
 How would i check that an e-mail has the right parts in it. for example.

 username @ domain . ext

You would check the archives because this has been covered more times than I 
have fingers to keep count with.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
A continuing flow of paper is sufficient to continue the flow of paper.
-- Dyer
*/


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



[PHP] How do i valadate an email address?

2003-03-26 Thread Philip J. Newman
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