我有这个表格:
<form method='GET' name='search' action='index.PHP?explore=search'> <input type="hidden" name="searchType" value="all" /> <input class="inputSearchSmall" name="search"> </form> <a href="javascript:document.search.submit()"><img src="img/button_search.png" class="buttonSearch" /></a>
我想在查询字符串之后添加参数,在action链接之后.所以结果必须是:
http://localhost:8080/website/index.PHP?explore=search&searchType=all&search=example
不是:
http://localhost:8080/website/index.PHP?searchType=all&search=example
<input type="hidden" name="explore" value="search" />
还是可以以某种方式将参数连接到动作脚本?