是的,这是可能的.考虑这样的表格:
<form action="foobar.PHP?a=123&b=456" method="post"> <input type="text" name="a" value="llama"> <input type="text" name="b" value="duck"> <input type="submit" name="go" value="Submit me!"> </form>
在提交此表单时,$_GET [“a”] ==“123”,$_GET [“b”] ==“456”,$_POST [“a”] ==“llama”,$_POST [“b” ] ==“duck”,$_POST [“go”] ==“提交给我!”.
正如the php.ini documentation所解释的,这与$_REQUEST
超全局的关系取决于request_order(或旧的variables_order)PHP配置设置的值.