PHP Code Errors IE7

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
corona08
Forum Newbie
Posts: 1
Joined: Sun Mar 02, 2008 12:19 pm

PHP Code Errors IE7

Post 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();
 
 
 
?>
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Re: PHP Code Errors IE7

Post by markusn00b »

Surely it's not a browser problem as php is executed server-side and therefore, the browser isn't used.
Post Reply