Hi. I'm making a website and I would like the visitors to be able to search the site or google at their choice. Do you know of a script which will allow this?
Printable View
Hi. I'm making a website and I would like the visitors to be able to search the site or google at their choice. Do you know of a script which will allow this?
Just do a View -> Source of the site you want to use. You'll just need to create a litte form with a text box and a Submit button.
This is the code from www.google.com:
Code:<form action="/search" name="f">
<table cellspacing="0" cellpadding="0">
<tr>
<td width="75"> </td>
<td align="center"><input type="hidden" name="hl" value=
"en"><input maxlength="256" size="35" name="q" value=""><br>
<input type="submit" value="Google Search" name="btnG"><input
type="submit" value="I'm Feeling Lucky" name="btnI"></td>
<td valign="top" nowrap><font size="-2"> <a
href="/advanced_search?hl=en">Advanced Search</a>
<br>
<a href=
"/preferences?hl=en">Preferences</a><br>
<a href="/language_tools?hl=en">Language
Tools</a></font></td>
</tr>
</table>
</form>
Yeah, but how would they search my site?
You will have to program it specifically for your site using a DB and searching through html pages stored into the DB.Quote:
Originally posted by Adamp44
Yeah, but how would they search my site?
There is no way to do it all in a script that I know of.
Yeah in order to search information you typically need it in a database of some sort. But if your web space supports Cold Fusion, you can create a "Verity collection" of your entire web space and make it searchable within minutes, no database required. Very cool stuff.