PHP页面的问题 [英] Problem with PHP Page
问题描述
我的PHP页面有问题。也许这是一个简单的
编码错误,或者关于$ _GET的一些我不知道的东西,或者是完全不同的东西。
。有人可以解释一下吗?
<!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"含量=" text / html的; charset = utf-8">
< ;?
$ type = $ _GET [''type'']
>
if($ _GET [''type''] =="")
{
echo" ?>< script>
setTimeout(" window.location.replace(''http://www.example.com/'')",0000)
< / script>< ;?
" ;;
}
?> < title>东西 - < ;?
if($ _GET [''type''] =="")
{
echo"重定向..." ;;
}
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 ="此页面链接到个性化的
aninotes,在这种情况下,< ;?
if($ _GET [''type''] = =youaremighty)
{
echo" You Are Mighty" ;;
}
elseif($ _GET [''type''] ==" justgotowned")
{
echo" Just Got Owned"
}
?>">
< link rel =" stylesheet"类型= QUOT;文本/ CSS" href =" ../ styles / default.css">
< / head>
< body>
< p> blah< / p>
< / body>
< / html>
谢谢。
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.
推荐答案
_GET,或其他什么
完全不同。有人可以解释一下吗?
<!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"含量=" text / html的; charset = utf-8">
< ;?
_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'']
if (
这篇关于PHP页面的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!