View Full Version : Help reagarding searching with in the site
tinku98483
01-10-2005, 06:19 AM
hi,
i need some help,regarding searching.
i want to place searching option with in my site,i.e i want search with in my site only
And i already searched lot of web site for this,But i did'nt get any thing.so,if possible any body can help me please.. i need it urgent
fivecents
01-10-2005, 06:44 AM
The quickest solution I can think of with this script provided by Google.
Basically the searching is done through Google, and results will only be of what Google has found on your web site. However, it is quick and painless.
<!-- SiteSearch Google -->
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<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="YOUR DOMAIN NAME"><br><input type=radio name=sitesearch value=""> WWW <input type=radio name=sitesearch value="YOUR DOMAIN NAME" checked> YOUR DOMAIN NAME <br>
</font>
</td></tr></TABLE>
</FORM>
<!-- SiteSearch Google -->
Just make sure you put your domain name where it says YOUR DOMAIN NAME.
Sorry that its not javascript. Hope you weren’t looking just for a javascript solution. If you were, my solution wouldn’t work.
Sorry that its not javascript. Hope you weren’t looking just for a javascript solution. If you were, my solution wouldn’t work.
JS can't search across pages, ie a site, only within a page or frameset.
tinku98483
01-10-2005, 11:23 AM
thank u very much for u r reply,but it is not working,one more thing i want results to be in another page,if it is not possible
with javascript can u kindly tell me how to solve this problem please..it is very urgent please..
you'll need a serverside coding language to do this properly. to be frank tho, the Google solution given to you is the best to go for.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.