RE: [PHP] REG_ECTYPE warning and eregi??
| From: | Kevin Stone | Date: | Wed, 27 Feb 2002 23:27:42 +0000 |
| Subject: | RE: [PHP] REG_ECTYPE warning and eregi?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86494@lists.php.net to get a copy of this message | ||
I didn't get a REG_ECTYPE warning but I did get a REG_PAREN type
warning. The curly bracket '}' near the '$' should be an close
parentheses ')'. :)
-Kevin
-----Original Message-----
From: Pax [mailto:pax@cfl.rr.com]
Sent: Wednesday, February 27, 2002 3:33 PM
To: php-general@lists.php.net
Subject: [PHP] REG_ECTYPE warning and eregi??
Hi All,
First I would like to thank you all for help with my previous questions.
I am still newbie but I learning and hopefully one day, I will be able
to pay it back.
I am getting the REG_ECTYPE warning in the following line which verifies
email address:
If (eregi("^([[:alnum:]]|_|\.|-)+@([[:alnum:]]|\.|-)+(\.)([a-z]{2,4}}$",
$HTTP_POST_VARS[email])) {
$e=TRUE;
} else {
$e=FALSE;
}
.....
Page is being completed and displayed but the warning is being displayed
at the top op the page?? Also not matter what type of email I will
enter, it does not pass this check point .. I know I must be blind ..
Thank you
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php