Forum Moderators: coopster
Page4.php does not get the HTTP_POST_VARS nor the $_POST['x_response'] nor $_REQUEST
Authorize.net shows both transactions as good.
Debug2 shows the response strings on the url (not a good idea to show peoples CC info on address line)
Please help
Have you considered using sessions [us2.php.net]? Should make your job easier :)
What you then do is pass a unique ID (like DB insert id) through SESSIONS and as the user progresses, their vars can be bought up.
I continued testing and reducing my code to below and is still breaks on both localhost and hosting with both IE7 and FF2.
test_CCthankyou.php:
<?php
session_start();
$a_silly_var = "testing";
$_GET['sillyG'] = $a_silly_var;
$_POST['sillyP'] = $a_silly_var;
$_SESSION['sillyS'] = $a_silly_var;
$location = "Test_of_thankyou.php?silly=".$a_silly_var;header("Location: $location");
exit();
?>
<html>
<head>
<title>Test the Thank you page</title>
</head>
<body>
<?php
$test_var = $_POST['sillyP'];
print "_GET TEST = ".$_GET['sillyG']."<br/>";
print "_POST TEST = ".$_POST['sillyP']."<br/>";
print "_SESSION TEST = ".$_SESSION['sillyS']."<br/>";
print "_REQUEST TEST = ".$_REQUEST['silly']."<br/>";
print "TEST_var = ".$test_var."<br/>";
?>
<A HREF="test_CCthankyou.php"><B>Click Here To Retry</B></A>
<BR>
</body>
</html>
Note the address bar has the correct GET param.
I do understand the missing session due to no session_start() in page2 after a header/location (this was a test).
BUT, What I really need to know is:
What happened to $_POST and $_GET?