I am making a page where you first select a payment method, than you get sent to the website of the bank you choose, but i can't figure out how to redirect back to another page after redirecting to the bank website. this is what i have so far:
<?php
if (!empty($_POST['Paypal'])){
$Paypal = $_POST['Paypal'];
if($Paypal=checked){
Header("Location: https://www.paypal.com/");
}
}
if (!empty($_POST['Visa'])){
$Visa = $_POST['Visa'];
if($Visa=checked){
Header("Location: https://www.visa.co.uk/");
}
}
if (!empty($_POST['Mastercard'])){
$Mastercard = $_POST['Mastercard'];
if($Mastercard=checked){
Header("Location: http://ift.tt/2eQZTTC");
}
}
?>
so what i am trying to get is: payment method checked > bank website > after few seconds go to confirm.php.
Aucun commentaire:
Enregistrer un commentaire