Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP post表单隐藏输入_Php_Http_Hidden Field - Fatal编程技术网

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不会撒谎吧?根据上面的代码示例,这是不可能的。