Log in

View Full Version : Adding Search Facility



tonymacca
08-02-2006, 01:26 PM
I am looking at adding a search facility onto my site, not to sure what is required, whether html or javascript is best.

Any help is much appreciated

mburt
08-02-2006, 01:44 PM
Err... I doubt HTML or JavaScript will do the trick. In fact I'm almost positive they won't. Try posting this in a PHP area or some server-side language.

blm126
08-03-2006, 12:00 AM
Do you mean a site wide search or something like this (http://www.dynamicdrive.com/dynamicindex11/findpage.htm)?
If you want a site wide search you should try this (http://www.javascriptkit.com/script/script2/google_site_search.shtml). It is not as nice as a PHP solution,but is much simpler

djr33
08-03-2006, 01:32 AM
I wrote this in about 2 weeks, though I've improved it a good bit since. I also didn't have much experience with php.

http://thebrb.com/stockpile/index.php?act=search


Note: google also offers a tool to put a google search box on your site which you can set to "this site" or "entire web"... I'm sure you've seen that around. Might be the easiest way. Does rely on google, though, and it's apparent you're using google, and not something you made.

mburt
08-03-2006, 02:23 AM
FrontPage 2003 (there may be other versions) let's you put a search on your website, but you have to have FrontPage Extensions Installed on your server.

blm126
08-03-2006, 03:42 AM
Note: google also offers a tool to put a google search box on your site which you can set to "this site" or "entire web"... I'm sure you've seen that around. Might be the easiest way. Does rely on google, though, and it's apparent you're using google, and not something you made.
:p Check my second link

djr33
08-03-2006, 07:37 AM
Ah, I did check your link, but saw a DD script, and didn't connect that to google. Right.