<?php
echo $_POST['$P']."<BR>";
?>
<form method="post" action="">
<input type="password" name="p">
<input type="submit">
</form>
我无法回复密码。不期待安全功能等,只想知道这个简单代码究竟出了什么问题
答案 0 :(得分:5)
这是
echo $_POST['p']."<BR>";
可能。做一个
var_dump($_POST);
你会看到名字是什么。
答案 1 :(得分:0)
请试试这个
<?php
echo $_POST['p']."<BR>";
?>
<form method="post" action="DONT_FORGET_URL.php">
<input type="password" name="p" value="">
<input type="submit">
</form>