Good day.!
I thought ive already solve the problem regarding to disable a button. When a variable totalbill is equal to zero the button will be disable, otherwise it will disable if totalbill is not equal to zero.! If totalbill is zero then it will be enable otherwise disable. Whats wrong with the code below:
<?php
$totalbill = mysql_real_escape_string($row_reclog['total']);
if($totalbill==0.00) { $disables="disabled=false"; } else { $disables="disabled=true"; }
echo "<Input type='button' name='button' value='Enroll Now' $disables >";
?>
Thank you very much ! Please help