Thanks for the reply.
Heres' what is happening.
In page1, there is 'taxrate' and 'notaxrate' in a form that after a self-post, get assigned to $salestax (depending upon which option(s) have been selected.
Then, I'm passing what is actually via zship3h.php?salestax=$salestax (changed it from taxrate).
In the following zship3h.php page, I do get the $salestax to display okay, but when the page form is processed, the amount gets nuked. Note I have tried umpteen different combinations of 'stuff' to try and deal with it (see comment/uncommented lines).
From zship3h.php I must pass both tax & shipping data to a final processing page (zsim3h.php) before the Authorize.Net stuff. SOOooo, BOTH $salestax AND $shiprate MUST be read in the zsimtest3h.php page which then processes to Authorize.Net. At this point, I dunno if this is via $HTTP_GET_VARS or what to assign the $vars to 'hidden fields' which then get passed to the AN *.dll final processing part.
If I go directly from ztax3h.php to zsimtest3h.php the $salestax rate works fine. If I go directly from zship3h.php to zsimtest3h.php the $shiprate works fine. But I can't go from ztax3h.php TO zship3h.php and then to zsimtest3h.php at this point 'cuz they won't work.
I just can NOT figure out what the problem is here. I've also tried $_SESSION['tax or ship']; etc., etc. but the Session ID does NOT get passed in the URL via the 'header' redirect.
Here is the code from the 'tax' page:
<?php
//ob_start();
session_start();
error_reporting(2039); // Temporary fix
?>
<html>
<head>
<title>Sales Tax</title>
</head>
<body>
<CENTER><font class=pagetitle>SALES TAX MODULE</font></CENTER>
<CENTER><font class="error">
<?php
// $domain = $_SERVER['SERVER_NAME'];
$self = $_SERVER['PHP_SELF'];
if (isset($_POST['submit'])) {
$taxrate = $_POST['taxrate'];
$notaxrate = $_POST['notaxrate'];
if (($taxrate == "info" ) && (!isset($notaxrate))) {
echo "Please select a tax area.";
} elseif (($taxrate != "info" ) && (isset($notaxrate))) {
echo 'Please choose only one option.';
} elseif (($taxrate != "info" ) && (!isset($notaxrate))) {
// $_SESSION['salestax'] = $taxrate;
// $_SESSION['salestax'] = $_POST['taxrate'];
$salestax = $_POST['taxrate'];
// $_SESSION['salestax'] = $_POST['taxrate'];
// header('Location: zzznext.php'); // go to nextfile IF no error
// header("Location: zship3h.php?%s", SID);
// echo "<a href=\"zship3h.php\">HERE</a>";
header ("Location: zship3h.php?salestax=" . $salestax);
} elseif (($taxrate == "info" ) && (isset($notaxrate))) {
// $_SESSION['salestax'] = $notaxrate;
// $_SESSION['salestax'] = $_POST['notaxrate'];
// $salestax = $_POST['notaxrate'];
// echo "$salestax";
$salestax = $_POST['notaxrate'];
// $_SESSION['salestax'] = $_POST['notaxrate'];
// header('Location: zzznext.php'); // go to nextfile IF no error
// header("Location: zship3h.php");
// echo "<a href=\"zship3h.php\">HERE</a>";
header ("Location: zship3h.php?salestax=" . $salestax);
}
//} // END isset($submit)
} else {
?>
</font>
</CENTER>
<CENTER>
<TABLE class=tablemain width="300" cellpadding="3" cellspacing="7">
<TR>
<TD>
<FORM METHOD="POST" ACTION="<?=$self?>">
<font class=subtitle>CALIFORNIA (USA) CUSTOMERS</font><br><br>
Please Choose <font class=fontbold>SHIP-TO DESTINATION</font> Area<br>
And Then Click The PROCEED Button Below<br>
<SELECT NAME="taxrate" size="1">
<OPTION VALUE="info" SELECTED>--Select SHIP-TO Destination--</OPTION>
<OPTION VALUE=".0825">Santa Clara County</OPTION>
<OPTION VALUE=".0725">All OTHER California Counties</OPTION>
<input type="hidden" name="taxcalc" value="taxrate">
</SELECT>
<br>
<HR class=horizrule>
<font class=subtitle>NON-CALIFORNIA CUSTOMERS</font><br><br>
Please <font class=fontbold>Check This Box</font> And Then PROCEED<br>
<input name="notaxrate" type="checkbox" value=".00">NON-CALIFORNIA Customer (No Sales Tax)<br>
<br>
<center>
<INPUT name="submit" type="submit" class=submitbutton value="PROCEED">
<INPUT name="reset" type="reset" class=resetbutton value="Reset Form">
</center>
</FORM>
</TD>
</TR>
</TABLE>
</body>
</html>
<?php
}
//ob_end_flush();
?>
Here is the code from the 'shipping' page:
<?php
error_reporting(2039); // Temporary fix
ob_start();
session_start();
?>
<html>
<head>
<title>SHIPPING MODULE</title>
</head>
<body>
<CENTER><font class=pagetitle>SHIPPING MODULE</font></CENTER>
<CENTER><font class="error">
<?php
// $domain = $_SERVER['SERVER_NAME'];
$self = $_SERVER['PHP_SELF'];
$salestax = $_GET['salestax'];
echo $salestax;
// THE ABOVE DISPLAYS THE SALES TAX AOK FROM PREVIOUS PAGE (ztax3h.php)
// $_SESSION['salestax'] = $salestax;
if (isset($_POST['submit'])) {
$shiprate = $_POST['shiprate'];
if ($shiprate == "info" ) {
echo "Please select a shipping method.";
} elseif ($shiprate != "info" ) {
// $_SESSION['shiprate'] = $shiprate;
// $_SESSION['shiprate'] = $_POST['shiprate'];
$shiprate = $_POST['shiprate'];
// $_SESSION['shiprate'] = $_POST['shiprate'];
// echo "<a href=\"zsimtest3h.php\">HERE</a>";
// header("Location: zsimtest3.php");
// $salestax = $HTTP_GET_VARS['salestax'];
// $salestax = $HTTP_POST_VARS['salestax'];
// $salestax = $HTTP_SESSION_VARS['salestax'];
// $salestax = $HTTP_SERVER_VARS['salestax'];
$salestax = $_POST['salestax'];
echo "Sales Tax: $salestax";
// Above is temporary to try and get $sales tax to display
// My last attempt to get the #&^! $salestax to show
// Actual processing is supposed to be the line BELOW
// header ("Location: zsimtest3h.php?shiprate=" . $shiprate . "&taxrate=" . $taxrate);
}
//} // END isset($submit)
} else {
?>
</font>
</CENTER>
<CENTER>
<TABLE class=tablemain width="300" cellpadding="3" cellspacing="7">
<TR>
<TD>
<FORM METHOD="POST" ACTION="<?=$self?>">
<font class=subtitle>AVAILABLE SHIPPING METHODS</font><br><br>
Please Choose <font class=fontbold>Shipping Method</font> Area<br>
And Then Click The PROCEED Button Below<br>
<SELECT NAME="shiprate" size="1">
<OPTION VALUE="info" SELECTED>--Select Shipping Method--</OPTION>
<OPTION VALUE="5.00">U.S. Mail</OPTION>
<OPTION VALUE="upsground">UPS Ground</OPTION>
<input type="hidden" name="shipcalc" value="shiprate">
</SELECT>
<br><br>
<center>
<INPUT name="submit" type="submit" class=submitbutton value="PROCEED">
<INPUT name="reset" type="reset" class=resetbutton value="Reset Form">
</center>
</FORM>
</TD>
</TR>
</TABLE>
</body>
</html>
<?php
}
ob_end_flush();
?>
I'm am so frustrated I can hardly see straight...and have almost worn out my keyboard trying any combination of 'stuff' I can think of. These are about the 2,587th version(s). :mad:
This MUST work with "Register_globals OFF" and I can NOT change any php.ini settings on my ISP's machine.
Sessions is enabled, but session.use_trans_sid is OFF.
There has got to be a solution to this, or else I'm nuked 🙁