All the credit card info is entered on another php form (using authorize SIM ) and gets passed to the process_respond.php, that script is below. The script does work.
We want to add more information as we like to build a custom receipt page for it. Right now it post back to the header("Location: thankyou.php?approved=$approved"); On that page we have the following tag
<?php echo $HTTP_GET_VARS[approved]?>
The area that has us confused is how do we add more information to be passed back as we tried many things an all seem to fail. We would like to see if possible to pass back more tags that way we can place them where we want on the Thankyou page.
The area we been playing with is $approved=$_POST["x_response_reason_text"];
Can we add more like this to the script? so it can do
- x_response_reason_text
- x_first_name
- x_last_name
switch($HTTP_POST_VARS["x_response_code"]) {
case 1:
$approved=$_POST["x_response_reason_text"];
//Redirect user to the approval page.
header("Location: thankyou.php?approved=$approved");
break;
case 2:
case 3:
$error=$_POST["x_response_reason_text"];
//Redirect user to the denied page.
header("Location: denied.php?error=$error");
break;
default:
}
Thanks to all for looking and place do remember help will be greatly appreciated.