[Solved] PHP simple Calculator problems [closed]
[ad_1] Try this: <?php $valuea = (int)$_POST[‘valuea’]; $valueb = (int)$_POST[‘valueb’]; $answer = $valuea + $valueb ; if ($answer > 84){ echo “You meet the requirements for the rule of 85”; }else{ echo “You do not meet the rule of 85″; } ?> <form method=’post’ action=’/make-a-website/online-calculator’> <table border=”0″ width=”500px” cellpadding=’3′ cellspacing=’1′ class=”table”> <tr class=”calcheading”> <td colspan=”2″><strong>Rule … Read more