Forum Moderators: coopster
<?php
$errmsg = "";
if (empty($_POST['pcode'])) {
$errmsg = 'Please enter a promotional code';
include 'promoform.php';
} else {
switch(strtolower($_POST['type'])) {
case "paper":
header("Location: [google.com");...]
break;
case "radio":
header("Location: [widget.com");...]
break;
case "magazine":
header("Location: [webmasterworld.com");...]
break;
}
}
?>
But when an unlisted code is entered it simply goes to a blank page. anyone have a fix for this?