代码如下
<form action="estimate.php" method="post">
<input type="text" name="score">
<input type="submit" value="estimate my futrue,please!">
</form>
<?php
$score=$_POST["score"];
if($score>100){
echo "I subjest you leave this world!!!you're a genius!! man!";
}
else if($score<100&&$score>80){
echo "you're garbage ,Man,you even can't got 100score,Look at your neighbor XiaoMing";
}else if($score<80&&$score>60){
echo "your futrue is bright!!!!";
}
else{
echo "congratulation,you got a nice score,you can get into the University of Oxford";
}
?>
找到问题了!! 原来是php.ini的问题 ,查找enable_post_data_reading变量,确保其打开状态,并且该语句前面的分号要去掉(有分号的语句是注释语句): 卡了一个小时很难受。。
原来要加文字 提示不清楚。。。
bug吗?
放不了代码
为什么输入代码片段提示请输入有效内容