Hey,
What code should I implement on the Google search on barrennorth.com to make the "Search this Site" button actually search the site, rather than the Web?
Thanks.
| SitePoint Sponsor |



Hey,
What code should I implement on the Google search on barrennorth.com to make the "Search this Site" button actually search the site, rather than the Web?
Thanks.

Hello
You need a database of information stored on your server. Then you would point the form action to that database.
That is my basic explaination, there may be other ways, and there is alot I do not know about databases.
Later
Johnny
Are you talking about a simple site: string?
http://www.google.com/help/features.html#sitesearch
.
Zach Holman
good-tutorials — blog — twitter — last.fm
Ah, I bet you're talking about
http://www.google.com/searchcode.html
.
Zach Holman
good-tutorials — blog — twitter — last.fm



Yes. I had to modify Google's site search code - the radio buttons won't go with my template well, but most of all, no one would use the "search the net" thing, anyway. I'm wondering how to use the site search code here:
Code:<!-- Search Google --> <center> <FORM method="GET" action="http://www.google.com/custom"> <TABLE bgcolor="#dcdcdc" cellspacing="0" border="0"> <tr valign=top><td> </td> <td> <INPUT TYPE=text name="q" size=20 maxlength=255 value=""> <INPUT type=submit name="sa" VALUE="Search this Site"> <INPUT type=hidden name="cof" VALUE="S:http://www.BarrenNorth.com;GL:1;AH:center;BGC:lightgrey;LH:43;LC:darkred;L:http://barrennorth.com/images/logo.gif;LW:700;AWFID:cd4dcd6f30c7fbda;"> </td></tr></TABLE> </FORM> </center> <!-- Search Google -->



Nevermind, got it. Thanks.
Bookmarks