Hi,
Can anybody see anything wrong with this:
<-- snip -->
// some other ifs and elseifs that seem to work okay
elseif ($CH_address_sa me != 1)
{
if ($PayMethod == "credit" && empty($CH_Addre ss1)
|| $PayMethod == "credit" && empty($CH_City)
|| $PayMethod == "credit" && empty($CH_Zip)
|| $PayMethod == "credit" && empty($CH_Count ry))
{
$err = 1;
}
}
The CH_address_same variable is being posted to the server using a checkbox
with a checked value of '1'.
For some reason if the first clause returns true the second clause chokes?
I can't see why. But I am a beginner!
B
Can anybody see anything wrong with this:
<-- snip -->
// some other ifs and elseifs that seem to work okay
elseif ($CH_address_sa me != 1)
{
if ($PayMethod == "credit" && empty($CH_Addre ss1)
|| $PayMethod == "credit" && empty($CH_City)
|| $PayMethod == "credit" && empty($CH_Zip)
|| $PayMethod == "credit" && empty($CH_Count ry))
{
$err = 1;
}
}
The CH_address_same variable is being posted to the server using a checkbox
with a checked value of '1'.
For some reason if the first clause returns true the second clause chokes?
I can't see why. But I am a beginner!
B
Comment