PHP post表单隐藏输入
我有一张表格PHP post表单隐藏输入,php,http,hidden-field,Php,Http,Hidden Field,我有一张表格 <form class="well form-search" method="post"> <input type="hidden" name="act" value="add"/> <input type="text" name="uname" placeholder="User name" /> <input type="password" name="passwd" placeholder="Password"
<form class="well form-search" method="post">
<input type="hidden" name="act" value="add"/>
<input type="text" name="uname" placeholder="User name" />
<input type="password" name="passwd" placeholder="Password" />
<button type="submit" class="btn">Add User</button>
</form>
添加用户
“uname”和“passwd”最后出现在$\u POST中,但出于某种原因,“act”出现在$\u GET中 ???真正地我觉得这有点难以置信。它是在$\u-GET和$\u-POST中都有,还是只在$\u-GET中有?你的URL中有
?act=value
?只在$\u-GET中,没有,没有?act=add。Xdebug不会撒谎吧?根据上面的代码示例,这是不可能的。