When an if does not work

From: Date: Fri, 22 Dec 2000 21:12:27 +0000
Subject: When an if does not work
Groups: php.general 
Request: Send a blank email to php-general+get-31637@lists.php.net to get a copy of this message
HERE IS A VERY SIMPLE CODE FRAGMENT THAT DOES NOT WORK ---------------------------------------------------------------------------------------- //Begin Test if($testmode == 1){print("<BR><font color=red size=+2>TEST::t_minbid = $t_minbid</font>");} //End Test //Begin Test if($testmode == 1) { print("<BR><font color=red size=+2>TEST::aucbid = $aucbid</font>"); } //End Test if ($aucbid < $t_minbid) { //Begin Test if($testmode == 1) { print("<BR><font color=red size=+2>TEST:: or here</font>"); } //End Test $toolow = 1; } if ($toolow) { echo "<h3>Bid too low.</h3>"; echo "<p>Sorry, that bid is too low. Bids must meet or exceed the "; echo "listed minimum bid. Please try again. "; exit; } ------------------------------------------------------------------------------- AND THIS IS THE RESULT TEST::t_minbid = 110 TEST::aucbid = 110 TEST:: or here Bid too low. Sorry, that bid is too low. Bids must meet or exceed the listed minimum bid. Please try again.

« previous php.general (#31637) next »