I figured out what the problem is, you have to get the url, and send it to the variable, THEN check it, i thought what you posted, reads the url, atleast i think thats whats going on, ima fiddle with it (this sure is a boat load of fun ;))
EDIT: Done, and done
Code: Select all
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<img src="images/spacer.gif" height="200">
<table width="700" height="100" align="center">
<tr>
<td valign="middle" align="center" bgcolor="#F1F1F1"><font face="verdana" size=-2 color="#333333"> Please wait, you are being redirected, if you do not wish to be redirected, hit the back button in your browser now.</font></td>
</tr>
</table>
</body>
</html>
<?
//Retrieves data from end of URL
$url_in = $_SERVER['REQUEST_URI'];
//looks for ? and reads data after it
function get_args($url_in) {
return substr($url_in, strpos($url_in, '?') + 1);
}
//assigns data to a variable
$myvar = get_args($url_in);
switch($myvar)
{
case "redirect" :
echo "Bahumbug";
break;
case "links" :
echo "Bahumbug2";
break;
case "home" :
echo "Bahumbug3";
break;
default :
echo "Where are you going, young man?";
break;
}
?>
I guess i took something i didnt understand, next time i'll do a bit more research before i ask questions

[/code]