I have a problem with a redirect.
I am using php to explode the referring URL and then putting that as the location. One page it comes from is already formatted with the Client Name in the URL. But the other page it comes from "newequip.php" needs to be sent back with the ClientName. I just have it formatted to removes sapces and put %20 in their place. When I load it from the page already formatted with the client name it redirect perfectly. However, when I try and do it from newequip.php its not working. The code above is the server side code. Here is the client side code it produces when coming from the newequip.php page.
does anyone have any ideas why it work for one but not the other? Here is the server dide code from the working page.
thanks
Code:
$Refer[3] = "newequip.php?ClientName=$ClientNameF";
echo "<html><head><title>Add Equipment Results</title></head><body onload=setTimeout(\"location.href='\\".$Refer[3]."'\",2500)>";
Code:
<body onload=setTimeout("location.href='\newequip.php?ClientName=Fox%20Theatre%20Hill'",2500)>
Code:
<body onload=setTimeout("location.href='\equipinfo.php?ClientName=Fox%20Theatre%20Hill&EquipName=T2'",2500)>
thanks