Page 1 of 1

PHP Code Errors IE7

Posted: Sun Mar 02, 2008 12:28 pm
by corona08
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();
 
 
 
?>

Re: PHP Code Errors IE7

Posted: Sun Mar 02, 2008 12:31 pm
by markusn00b
Surely it's not a browser problem as php is executed server-side and therefore, the browser isn't used.