RE: [PHP] REG_ECTYPE warning and eregi??

From: Date: Wed, 27 Feb 2002 23:57:01 +0000
Subject: RE: [PHP] REG_ECTYPE warning and eregi??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-86495@lists.php.net to get a copy of this message
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:kevin@helpelf.com] Sent: Wednesday, February 27, 2002 6:28 PM To: 'Pax'; php-general@lists.php.net 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: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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#86495) next »