View Full Version : add a search to my website
How can i add the search to my website? i like the one on this forum. can anyone help me? Thanks
thetestingsite
04-17-2007, 12:17 AM
There are several free ones on the net. The way could accomplish it is by using a database and have a php script access it.
Here is a pretty decent (free) one that uses flat file database to index the pages.
http://www.cj-design.com/products/free_downloads/php_scripts/cjwebsitesearch
Hope this helps.
shockwave13
03-09-2011, 01:50 AM
The easiest way to add a search engine to your site is to use this code. Just plop it in your website.
This will search the whole internet (in another window)
<form action="http://www.google.com/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-0931223074117014:1533203349" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="55" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
If you need code to search your whole website, or you want it to open up in the same window, I would need more information to build the code. Its pretty easy. Just email me at: shockwave13@gmail.com and I will help you build the code.
Cheers
[Nicolas]
03-09-2011, 01:58 AM
You know the last post in this topic was in 2007? ;)
Cool code though.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.