Moved it outside and I'm getting closer but whether you out in a valid code or invalid it says the coupon code is invalid. Here is the code:
<?php
if(isset($_POST['Coupon_Code'])) {
if(($_POST['Coupon_Code'] != "airflight") || ($_POST['Coupon_Code'] != "facebook") || ($_POST['Coupon_Code'] != "pinterest")) {
$_SESSION['badCoupon'] = "yes"; }
else {
$_SESSION['badCoupon'] = "no";
}
}
?>
Can't figure out why all coupon codes are invalid.