PinoyDev -3 Posting Whiz in Training

Good day.

I was able to take a nightmare of my code regarding to disable a button. This code derive from a member post in this site. it will retun errror.!

<?php
 if($totalbill==0) { $disabled="disabled=true"; } else { $disabled="disabled=false"; }

 echo "<input name="enrlclick" type="submit" class="style18" id="enrlclick" value="Enroll Now" ".$disabled">"; ?>

Thank you for your support. Please help

God bless.!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.