I am having an issue here that no matter what happens, my else statement is always displayed with my if! Can someone help me, I can't seem to find where I messed up :o.
if ($_GET['cat'] == "wired") {
$f_p = "iframe_wired.php";
echo "<iframe src=\"$f_p\" name=\"$f_n\" scrolling=\"$f_s\" frameborder=\"$f_b\" align=\"$f_a\" height=\"$f_h\" width=\"$f_w\">
</iframe>";
} else {
exit();
}
if ($_GET['cat'] == "wireless") {
$f_p = "iframe_wireless.php";
echo "<iframe src=\"$f_p\" name=\"$f_n\" scrolling=\"$f_s\" frameborder=\"$f_b\" align=\"$f_a\" height=\"$f_h\" width=\"$f_w\">
</iframe>";
} else {
exit();
}
BTW, i am requiring a config file which holds all values except for $f_p (i just didnt include that line of code)