I am trying to redirect users depending on there input
I am using the following script in the form:
[code]
Redeem your Gift Certificate Savings for Special Orders here:
Enter Coupon code
the following code in my php file:
[php]<?php
$coupon_code = $_POST[‘couponcodenumber’];
if ($coupon_code = $some_other_value) {
$redirected_address = 'Location: specialordersDiscountForm.php';
header ($redirected_address);
exit();
} else {
$redirected_address = ‘Location: specialorderwrongcode.php’;
header ($redirected_address);
exit();
}
?>[/php]
Trying to direct them to one page if they enter the wrong code and to another if they enter the right code. Not sure where I am going wrong :(. If anyone can help me out here I would greatly appreciate it.
Thanks!