【发布时间】:2016-11-17 12:41:07
【问题描述】:
表单可以输出google'search for input text.
<form method="get" action="http://www.google.com/search">
<p class="nav">
<input size="-1" value="Search" type="submit"><br>
<input name="q" size="16" maxlength="255" type="text">
<input name="sitesearch" value="www.example.com" type="hidden">
</p>
</form>
用firefox打开,输入robot。
点击搜索按钮,我们得到googl的搜索结果。
这里有一个问题:google搜索引擎可以接收和处理<input name="sitesearch" value="www.example.com" type="hidden">中的参数吗?
现在我想用相同的形式获得 yahoo finace 搜索结果,将其重写为
<form method="get" action="http://finance.yahoo.com/quote/">
<p class="nav">
<input size="-1" value="Search" type="submit"><br>
<input name="q" size="16" maxlength="255" type="text">
</p>
</form>
我什么时候输入fnma 并点击搜索按钮。
如何使用yahoo Finance重写动作以获得以下搜索结果?
【问题讨论】: