form 表单 action 参数 接收不了

<form method="get" action="/test/index.php?mod=123456" >
<input type="hidden" name="a" value="00" />
<input type="submit" />
</form>

 

后台只能接收a=00。action后面的参数接收不了。

<form method="post" action="/test/index.php?mod=123456" target="ifr" >
<input type="hidden" name="a" value="00" />
<input type="submit" />
</form>

 

改为post提交之后就能接收了。$_REQUEST

 

因为form表单提交的时候get请求只提交输入域的内容

 

posted @ 2016-04-19 08:59  access笨小孩  阅读(277)  评论(0编辑  收藏  举报
>