You're using = instead of ==
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
arrays are quoted if ($_POST['Payment']
many servers in the path between your server and the client do not handle spaces well, the $_post-ed value would be better as Bank_Transfer
javascript redirects when using a server language ??
why send anything but the correct page to the client
<?php
if($_POST['Payment'] == 'Bank_Transfer') {header("Location: banktransfer.php");
elseif($_POST['Payment'] == 'Credit_Card') {header("Location: creditcard.php");
else {header("Location: paypal.php");
or switch / case
edited '==' :(
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
in the form <select name='payment'
in the handler if($_POST['Payment']
Case sensitive?? maybe; payment ≠ Payment ;
$_POST['Payment'] == "";//none of the checks return true, default 'else' result Paypal
change either the html form or the php handler, so they both use the same name
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376