【发布时间】:2012-07-23 12:42:52
【问题描述】:
我正在使用使用不同搜索方法的电子商务引擎脚本。
而不是像这样使用 GET 的 URL:
http://search.com/searchc?q=the+query
它使用
http://search.com/searchc/the+query
我如何制作一个 POST 或 GET 表单,因为这个表单会生成 URL
http://search.com/searchc/?q=the+query
<form action="/searchc/" method="post">
<input type="text" id="q" name="q">
<input type="submit" value="go">
</form>
也试过这个(get 或 post 对这两个都不起作用)
<form action="/searchc/" method="post">
<input type="text" id="" name="">
<input type="submit" value="go">
</form>
【问题讨论】: