I am having trouble with displaying the tax on a receipt page, but it displays in a couple other pages like the shopping cart and payment form. I took the code for the shopping cart (the whole page) and turned it into the receipt page, and the tax doesn't work.
After you leave the shopping cart, you go to the shipping then the payment form on authorize.net, then you get back to the receipt page on my server. The receipt has an include to connect to the database.
what can I do to get that tax info again?
:bemused:
$get_tax = mysql_query("SELECT * FROM shippinginfo WHERE userid = '$userid'");
if(!$get_tax){ echo mysql_error."error";}
$check_tax= mysql_num_rows($get_tax);
if($check_tax){
while($row = mysql_fetch_array($get_tax)){
foreach( $row AS $key => $val){
$$key = stripslashes($val);
}
session_register('SCity');
session_register('SCounty');
session_register('SState');
}//end while
}//end if
<td width="23%">
<? if(IsSet($Tax)){echo "$".$Tax;} else echo "0"; ?>
</td>