首页 > 解决方案 > 从 html 表单传递高级搜索查询

问题描述

我正在尝试将几个搜索查询(allintitle 和 allinurl)从 HTML 表单传递给 Google。我尝试通过插入这些参数(as_occt=title 和 as_occt=url)来使用下面的示例,但无法使其正常工作。

        <form action="https://google.com/search">
           All these words:<input type="text" name="as_q" >
           <br><br>Exact word/phrase:<input type="text" name="as_epq" >
           <br><br>Any of these words:<input type="text" name="as_oq" >
           <br><br>None of these words:<input type="text" name="as_eq" >
           <br><br> 
           <input type="submit" value="advanced search">
        </form>

标签: htmlformsgoogle-searchadvanced-search

解决方案


推荐阅读