
- You are not logged in. | Login
February 3, 2010 2:02 am
- Simon
- Member


if then statment need abit of help! thanks
maybe you lot can help me am trying to make a option were it will check 3 lots of information and enable / disable the selectioned items for the setting below is my badly coded code i tryed to work out.
<?php
if ($sid == '1') {
if ($qty == '4') {
echo "Sorry!, You are only able to order a maxium of 3 samples per order.";
$tag = 'disabled';
} elseif ($_SESSION['cart']) {
$tag = '';
} else {
$tag = 'disabled';
}
}
?>basicly what i wanrt is for it to check SID and then QTY and if there both match to disable the option then i want it to check to see if the cart is true or false and if false to disable the funcation yet agen
can anyone help me plz?
thanks


