Ok so I have an html form that submits to a php file… which for the most part works. It comes back with everything I need, but with one flaw. This is an order form where you enter in the # of items you want and then it calculates it for you…and when you submit it shows you the contract with everything you ordered. If the amount you entered is not 0 it should show the number and the price with what you ordered…if you didn’t it shouldn’t show anything at all… This works great except that even if there is just a 0 the contract will show 0 0.00 (the # and total) for items anyways…
code is as follows:
$qtyA=qtyA;
if ($qtyA != “0”) {
echo $_POST[“qtyA”]; }?>
now originally I had it as this but it does the same thing:
<td><?php
if (qtyA != "0") {
echo $_POST["qtyA"]; }?>
</td>
I have tried using >0 and >=1, but it all just spits out the same result. How do I get it to not so the items that are just 0 ??