You are here: Problem with PHP Page « PHP Programming Language « IT news, forums, messages
Problem with PHP Page

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация