我使用GET方法已经包含像参数中的URL提交表单腓get方法resseting网址
本地主机/ myfile.php?节=控制台
我的表单代码
<form method="GET" action="<?=basename($_SERVER['PHP_SELF'])?>/section=console">
<input type="text" name="cmd" />
<input type="submit" value="execute" />
</form>
当我通过邮递方式提交这个数据时,它提交数据然后提交像myfile.php?cmd = blahblah 但我想提交给myfile.php?section = console & cmd = blahblah。
我可以使用隐藏域做到这一点,但我INSEARCH学院的其他更好的办法
只需将查询字符串的当前URL作为表单动作 – 2014-09-18 18:32:16
我没有明白,请您解释 – 2014-09-18 18:41:38
为什么不使用“/myfile.php?section=console”作为表单动作? – 2014-09-18 19:50:14