RE: [PHP] $_POST[]

From: Date: Fri, 19 Dec 2003 02:40:32 +0000
Subject: RE: [PHP] $_POST[]
Groups: php.general 
Request: Send a blank email to php-general+get-172992@lists.php.net to get a copy of this message
It should have quotes, unless you have defined formReviewBy as a constant PHP's nice enough to interpret it as a string if using it as a constant fails, but you should still quote it anyway. Martin > <?php if ($_POST[formReviewBy]=="Cade Lloyd") { echo "selected"; } ?> > > Should $_POST[formReviewBy] have quotes or dose it not matter?

« previous php.general (#172992) next »