Posted by Big Moxy on 08/04/07 01:05
Would someone be so kind as to tell me what is wrong with this code?
(1) This code block indicates the session variable nomex is null.
if (is_null($_SESSION['nomex'])){
echo " is null.";
}
else {
echo " is not null.";
}
(2) However on the same page this code block always adds 100 to the
price.
if ($_SESSION['nomex'] != "^^no^^"){
if (!is_null($_SESSION['nomex'])){
// NOMEX Lining
$new_price = $new_price + 100;
}
}
echo "$".$new_price;
Thank you very much!!
[Back to original message]
|