y 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 synt
Sorry about that last E-mail! Here is what I meant:
if (preg_match ("/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/", $emailaddress) ||
preg_match
("/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/",$emailaddr
ess))
{
print "That is a valid e-mail.\n";
}
else
{
print "Not a va
Hi Don,
Saw this on the PHP list archive:
> -Original Message-
> From: Don [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 16, 2001 10:51 AM
> To: php list
> Subject: [PHP] validating an e-mail address entry
>
>
> Does anyone know of a way to validat
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 '
4 matches
Mail list logo