Re: validating an e-mail address entry
| From: | Charlie Llewellin | Date: | Fri, 16 Feb 2001 16:25:56 +0000 |
| Subject: | Re: validating an e-mail address entry | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40166@lists.php.net to get a copy of this message | ||
Or ,as has been mentioned before, use the Manuel Lemos email validation
class which will attempt to verify that the address can recieve mail.
----- Original Message -----
From: "Don" <don@lclcan.com>
To: "php list" <php-general@lists.php.net>
Sent: Friday, February 16, 2001 9:50 AM
Subject: [PHP] validating an e-mail address entry
> Does anyone know of a way to validate an e-mail address that was entered
> and submitted from a form? I would like to trap invalid syntax.
> Perhaps there exists a script that does just that?
>
> I assume valid syntax is the following:
>
> One or more characters before the @ sign, followed by an optional '[',
> then any number of letters, numbers, dashes or periods (valid domain/IP
> characters) ending in a period and then 2 or 3 letters (for domain
> suffixes) or 1 to 3 numbers (for IP addresses). An ending bracket is
> also allowed as it is valid syntax to have an email address like:
> user@[255.255.255.0].
>
> Thanks,
> Don
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>