Hi, I was wondering if someone could be so kind to help with a problem I am having.
I am using the following code:
Code: Select all
<?php
if (!isset($id)) {
header("Location: index.php?id=home");
}
?>
Ok the problem I am getting is I have one server running PHP 4.4.1 and this code works fine so if you try to load index.php it redirects to index.php?id=home because id hasn't been defined in the URL. Now the problem is when I try to use this on the server (which I really need it to work on) which is running PHP 4.4.2 it gets stuck in some sort of loop and won't load.
Is this a problem with the PHP version, is there an alternative way to do this? or what????
Help!!!
Any suggestions appreciated.
Thanks!