In my previous message, the forum tried to parse my code and made a mess of it. I will try again and see if I have better results.
HERE IS THE CODE: (with the offending html tags removed...
print("TEST::t_minbid = $t_minbid");
print("TEST::aucbid = $aucbid");
if ($aucbid < $t_minbid)
{
print("TEST:: or here");}
$toolow = 1;
}
if ($toolow)
{
echo "Bid too low.";
echo "Sorry, that bid is too low.
Bids must meet or exceed the ";
echo "listed minimum bid.
Please try again.";
exit;
}
AND THE OUTPUT:
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.
Lance Earl wrote:
I have a simple if statement to test the value of a variable. It has stopped working and I have no idea why. Please review the following code fragement and output and help me out of a tough spot.
Thanks
HERE IS THE CODE:
//Begin Test
if($testmode == 1)
{
print("<font color=red
size=+2>TEST::t_minbid =
$t_minbid</font>");
}
//End Test
//Begin Test
if($testmode == 1)
{
print("<font color=red
size=+2>TEST::aucbid =
$aucbid</font>");
}
//End Test
if ($aucbid < $t_minbid)
{
//Begin Test
if($testmode == 1)
{
print("<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 HERE IS THE OUTPUT:
<font color=red size=+2>TEST::t_minbid = 110</font>
<font color=r....