某些$\u GET[]无法在PHP代码中工作 if($\u GET[“content”]=“foo”){ 回声(“foo”); 出口 }
当我输入URL“127.0.0.1/wu/index.php?content=foo”时,它似乎输出了我之前编写的代码某些$\u GET[]无法在PHP代码中工作 if($\u GET[“content”]=“foo”){ 回声(“foo”); 出口 },php,Php,当我输入URL“127.0.0.1/wu/index.php?content=foo”时,它似乎输出了我之前编写的代码 if($_GET["content"] ="foo"){ echo("<h4>foo</h4>"); exit; } if($\u GET[“content”]=“picture”){ 回声(“图片:”); 回声(“”); 出口 } 这里有什么问题 您的文件是从 if($_GET["content"] ="picture"){
if($_GET["content"] ="foo"){
echo("<h4>foo</h4>");
exit;
}
if($\u GET[“content”]=“picture”){
回声(“图片:
”);
回声(“”);
出口
}
这里有什么问题
您的文件是从
if($_GET["content"] ="picture"){
echo("Picture:<br>");
echo("<img src='./ku~1.jpg'></img>");
exit;
}
您的文件是从
if($_GET["content"] ="picture"){
echo("Picture:<br>");
echo("<img src='./ku~1.jpg'></img>");
exit;
}
分配$\u GET[“content”]
值“picture”
。你想用
if($_GET["content"] ="picture"){
及
相反
分配$\u GET[“content”]
值“picture”
。你想用
if($_GET["content"] ="picture"){
及
相反。=
vs=
。(还有3个)=
vs=
。(还有3个)是的。但我不知道问题出在哪里,我检查了代码中的一些问题,一切都是应该的。哇,伙计,非常感谢。这解决了问题。这个问题让我很沮丧。再次感谢:)是的。但我不知道问题出在哪里,我检查了代码中的一些问题,一切都是应该的。哇,伙计,非常感谢。这解决了问题。这个问题让我很沮丧。再次感谢:)
if($_GET["content"] ="picture"){
if($_GET["content"] =="picture"){
if($_GET["content"] =="foo"){