2

是否可以直接从我自己的网页中搜索图片?

我想插入一个网址,例如:“http://thegalaxyguide.com/galaxy/sun/ultra_violet_sun.gif”,然后被重定向到谷歌并观看结果。

我试过这个

    <form method="get" action="http://images.google.com/searchbyimage"
    <input type="text" />
    <input type="submit" value="Search" />
    </form>

但它只是去谷歌自己的“按图片搜索”页面......

4

1 回答 1

4

这确实

<form method=get action='http://www.google.co.in/searchbyimage'>
<input type=text name=image_url value='https://www.google.com/intl/en_com/images/srpr/logo3w.png'>
<input type=hidden name='encoded_image' value='' />
<input type=hidden name='image_content' value='' />
<input type=hidden name='filename' value='' />
<input type=hidden name='num' value='10' />
<input type=hidden name='hl' value='en' />
<input type=hidden name='authuser' value='0' />
<input type=hidden name='bih' value='638' />
<input type=hidden name='biw' value='1366' /><br>
<input type=submit name='biw' value='search' />
</form>
于 2012-02-18T10:21:36.907 回答