redirect causes a problem
Hi Eric,
I thought all was well and working, but the redirect seems to cause a problem. From the checkout page the customer is directed to confirm2.php, if the shipping_country is Germany, the customer gets redirected to confirm.php with this code:
<?php
//Redirect to confirm.php if shipping_country is Germany
if(isset($_POST["shipping_country"]) && $_POST["shipping_country"] == ' Deutschland'){
header("Location: confirm.php");
}
if(isset($_POST["shipping_country"]) && $_POST["shipping_country"] == ' Germany'){
header("Location: confirm.php");
}
if(isset($_POST["shipping_country"]) && $_POST["shipping_country"] == ' Allemagne'){
header("Location: confirm.php");
}
if(isset($_POST["shipping_country"]) && $_POST["shipping_country"] == ' Alemania'){
header("Location: confirm.php");
}
?>
The problem is now, that on confirm.php (for German customers) none of the contact info is displayed. For confirm2.php the contact info is displayed without any problems. The code of both pages is exactly the same, but for one page the contact info is displayed, and for the other not. This leads me to believe, that the redirect could cause the problem.
BTW, once I confirm the order, on the success page the contact info is all there.
Eric, if you would help me, could you maybe open a ticket for this problem, so I can send you the files?
Roxana