Forum Moderators: open

Message Too Old, No Replies

Google Site Search Box for Multiple Domains

Google Site Search Box for Multiple Domains

         

Vrindavan

3:25 am on Jul 26, 2004 (gmt 0)

10+ Year Member



Is it possible to use Google "Site Search Box" to search content from Multiple Domains at the same time.

If it is possible,
what is the code look like?

Thanks

dtmuk

11:45 pm on Jul 26, 2004 (gmt 0)

10+ Year Member



erm..ive not tried this because i dont have access to my site at the moment but by guessing if you add another:

<INPUT id=esc type=radio name=sitesearch value="YOUR OTHER DOMAIN">

as the value equals the domain single domain by default if you add another when it is passed to google. site search would equal the domain that is selected.

David Middlehurst

Vrindavan

11:41 am on Jul 28, 2004 (gmt 0)

10+ Year Member



i still cannot figure out how to do it.
what i need is the search have to return url results that come from multiple domains at one time.

This is the default code

<FORM method=GET action="http://www.google.com/search">
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
border="0" ALT="Google"></A></td><td>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
<font size=-1>
<input type=hidden name=domains value="abc.com">
<br>
<input type=radio name=sitesearch value=""> WWW
<input type=radio name=sitesearch value="abc.com" checked> YOUR DOMAIN NAME <br>
</font>
</td></tr></TABLE>
</FORM>

RonPK

12:42 pm on Jul 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



AFAIK you cannot do a site search at Google for multiple domains. What would the query look like?
q=site:domain1.tld site:domain2.tld funny widgets
won't work.

But maybe someone in the Google news forum knows a trick...

modifying the code also is against the AdSense/Site search TOS