search

Home  >  Q&A  >  body text

Why can't the value be passed through?

Code language


StuStu2348 days ago1219

reply all(7)I'll reply

  • Stu

    Stu2018-08-18 22:17:08

    Found the problem! ! It turns out to be a problem with php.ini , look for the enable_post_data_reading variable, make sure it is open, and remove the semicolon in front of the statement (the statement with a semicolon is a comment statement):  It was very uncomfortable after being stuck for an hour. .

    reply
    0
  • ringa_lee

    awesome

    ringa_lee · 2018-08-20 09:02:13
  • Stu

    Stu2018-08-18 22:10:54

    It turned out that the text to be added was not clear. . .

    reply
    0
  • Stu

    Stu2018-08-18 22:10:10

    代码如下
    <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";
    }
    
     ?>


    reply
    0
  • Stu

    Stu2018-08-18 22:06:24

    bug?

    reply
    0
  • Stu

    Stu2018-08-18 22:05:15

    Can’t put the code


    reply
    0
  • Stu

    Stu2018-08-18 22:04:50

    Why is it prompted to enter valid content when entering a code snippet


    reply
    0
  • Cancelreply