Thanks Kevin,
Actually - it is my mistake while retyping the text since my development
machine has no email - it is ) and I tried again and I do get this error
in this line :-(((
If
(eregi("^([[:alnum:]]|_|\.|-)+@([[:alnum:]]|\.|-)+(\.)([a-z]{2,4})$",$HT
TP_POST_VARS[email])) {
}
Paul
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 6:28 PM
To: 'Pax'; [EMAIL PROTECTED]
Subject: RE: [PHP] REG_ECTYPE warning and eregi??
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:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 3:33 PM
To: [EMAIL PROTECTED]
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php