Hi there. I have been developing a site to deal with the sales of CD ROMs over the net and I have hit a bit of a brick wall. I accept several payment methods which can be selected on the order screen. I have now developed links to individual thankyou screens, each displaying specific payment instructions depending on the method selected. I have written a script using PHP to cope with this but I can't get it to work properly. It sends me the information with no problems at all but when it comes to slect the right thankyou screen, all I get is a blank screen. Here is the coding I have written.
<?
$recipient = "sales@h-ematrix.co.uk";
$subject = "Order";
$message = "Surname - $surname Forename - $forname Address - $address Email - $email Referee - $referee CD ROM - $cdrom List - $list Payment - $payment";
$from - $_POST['email'];
$surname=$_POST['surname'];
$forename=$_POST['forname'];
$address=$_POST['address'];
$email=$_POST['email'];
$referee=$_POST['referee'];
$cdrom=$_POST['cdrom'];
$list=$_POST['list'];
$payment=$_POST['payment'];
if ($payment=="paypal"){
header("Location:[url]http://www.h-ematrix.co.uk/thankyoupp.htm[/url]");
}
elseif ($payment=="nochex"){
header("Location:[url]http://www.h-ematrix.co.uk/thankyounc.htm[/url]");
}
elseif ($payment=="po or bankers draft"){
header("Location:[url]http://www.h-ematrix.co.uk/thankyoubdpo.htm[/url]");
}
elseif ($payment=="cheque"){
header("Location:[url]http://www.h-ematrix.co.uk/thankyoupc.htm[/url]");
}
mail($recipient,$subject,$message,$from);
?>
Can anyone tell me what is wrong?
Thanks