search

Home  >  Q&A  >  body text

Getting value using POST output error

<?php

//Get the value of username

$u = $_POST['username'];

echo $u.'<br />';


//Get the value of pwd

$password = $_POST['pwd'];

echo $password;

?>


冰雪环绕冰雪环绕2536 days ago1426

reply all(3)I'll reply

  • 无聊的人

    无聊的人2018-05-14 10:25:13

    Whether to use post mode to transmit? Whether the value of the input tag name attribute is username, pwd, <input type="text" name="pwd">

    reply
    0
  • dabour

    dabour2017-12-14 11:55:22

    You have to act on this file in your html

    reply
    0
  • 645payen

    645payen2017-12-14 10:51:20

    Where did the parameters come from? Alas... I won’t even ask the question

    reply
    0
  • Cancelreply