【发布时间】:2011-06-27 16:08:11
【问题描述】:
我有一个搜索表单
<!-- SEARCH -->
<form name="search" class="search" action="/search/" method="get">
<input type="text" size="20" name="keywords" class="searchfield" value="Search for Property" onclick="clearSearchField()" title="Enter search keywords here. Ex- project name, city, state, etc." />
<input type="image" src="/media/images/elements/search_icon.png" alt="Search" title="Click here to search" class="searchbutton" />
</form>
当我提交时,除了关键字之外,我在查询字符串中还有两个额外的变量 x 和 y -
http://127.0.0.1/search/?keywords=Search+for+Property&x=6&y=7
为什么?
编辑 更改关键字的值确实会更改 x 和 y 的值
http://127.0.0.1/search/?keywords=foo&x=0&y=0
【问题讨论】:
标签: html forms get query-string