Click to See Complete Forum and Search --> : Search engine questions


Adamp44
04-12-2002, 02:12 PM
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?

rock
04-12-2002, 03:50 PM
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:

<form action="/search" name="f">
<table cellspacing="0" cellpadding="0">
<tr>
<td width="75">&nbsp;</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">&nbsp;•&nbsp;<a
href="/advanced_search?hl=en">Advanced&nbsp;Search</a>
<br>
&nbsp;•&nbsp;<a href=
"/preferences?hl=en">Preferences</a><br>
&nbsp;•&nbsp;<a href="/language_tools?hl=en">Language
Tools</a></font></td>
</tr>
</table>
</form>

Adamp44
04-12-2002, 04:05 PM
Yeah, but how would they search my site?

bryce777
04-12-2002, 06:14 PM
Originally posted by Adamp44
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.

There is no way to do it all in a script that I know of.

Grizzly
04-12-2002, 09:03 PM
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.