A
Anonymous
Guest
Are you sure that $Type1 is an array?
it would seem to me that it's just a variable, so you're IF statement is off.
You would need to re-write it to something like..
it would seem to me that it's just a variable, so you're IF statement is off.
You would need to re-write it to something like..
PHP:
if (isset($Type1)) {
switch (strtolower($Type1)) {
case "farm":
$redirect = "farm.php";
break;
case "house":
$redirect = "house.php";
break;
case "apartment":
$redirect = "apartment.php";
break;
default:
$redirect = "default.php";
break;
}
} else {
$redirect = "cantfindit.php";
}
header("Location: $redirect");