PHP Code Errors IE7
Posted: Sun Mar 02, 2008 12:28 pm
Hi, Im using this code on my page to hide my links but sometimes when using IE or ever mozilla it wants to download the script instead of running it... any ideas as to why this is happening..? thanks for you help in advance.
Code: Select all
<?php
$o=$_GET['o'];
if ($o == "l1") {$link = "http://www.xxx.com";} // Default link
if ($o == "l2") {$link = "www.xxx.com";}
if ($o == "l3") {$link = "www.xxx.com";}
if ($o == "l4") {$link = "www.xxx.com";}
header("Location: $link");
// Jump to the hiddden URL above
exit();
?>