|
Posted by The Numerator on 04/06/06 04:38
I am having a problem with one of my PHP pages. Maybe its a simple
coding error, or about something I don't know about $_GET, or something
totally different. Could someone explain?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<?
$type = $_GET['type']
if ($_GET['type'] == "")
{
echo " ?><script>
setTimeout("window.location.replace('http://www.example.com/')" ,0000)
</script><?
";
}
?><title>Stuff - <?
if ($_GET['type'] == "")
{
echo "Redirecting...";
}
elseif ($_GET['type'] == "youaremighty")
{
echo "You Are Mighty";
}
elseif ($_GET['type'] == "justgotowned")
{
echo "Just Got Owned"
}
?></title>
<meta name="keywords" content="stuff, internet, aninote, <?
if ($_GET['type'] == "youaremighty")
{
echo "You Are Mighty";
}
elseif ($_GET['type'] == "justgotowned")
{
echo "Just Got Owned"
}
?>">
<meta name="description" content="This page links to personalized
aninotes, in this case, <?
if ($_GET['type'] == "youaremighty")
{
echo "You Are Mighty";
}
elseif ($_GET['type'] == "justgotowned")
{
echo "Just Got Owned"
}
?>">
<link rel="stylesheet" type="text/css" href="../styles/default.css">
</head>
<body>
<p>blah</p>
</body>
</html>
Thank you.
[Back to original message]
|