Re: E-mail address verification
| From: | Tony | Date: | Thu, 20 Jun 2002 13:28:04 +0000 |
| Subject: | Re: E-mail address verification | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19898@lists.php.net to get a copy of this message | ||
Use this:
If (eregi("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
// do something
Else
// go back
Tony S. Wu
Gary.Every@ingramentertainment.com at Gary.Every@ingramentertainment.com
wrote:
> I'm looking for a good function that will allow me to verify that a valid
> e-mail address has been entered.
> I'm working with sales people that seem to get every possible problem
> entered into the field, such as:
>
> bill@here (no .com)
> bill@here .com (space, makes two email addresses!)
> bill@here,com (comma)
> bill
> bill@
> and the list goes on.
>
> Any input would be appreciated.
>
>
> Gary Every
> "Pay It Forward"
> mailto:gary.every@ingramentertainment.com
> http://accessingram.com
>