Zetnet Services - Script for Web site Search
This document explains how to implement a simple search engine for your Zetnet web site. It is based on a simple table layout to demonstrate it's use, but you are of course free to design your own custom layout if you wish.
If you have your own domain name commercially hosted (ie: not free hosting) by Zetnet then you can use the ht://Dig search engine on your site.
<FORM METHOD="POST" ACTION="/cgi-bin/search.cgi">
<CENTER>
<TABLE BORDER=3 CELLPADDING=5>
<TR>
<TD>Text to Search For: </TD>
<TD><input type=text name="terms" size=40><BR></TD>
</TR>
<TR>
<TD>Boolean: <select name="boolean"><option>AND<option>OR</select> </TD>
<TD>Case <select name="case"><option>Insensitive<option>Sensitive</select><BR></TD>
</TR>
<!-- **********************************************************
Change the line after these comments to include the directories you want to search in. For example, if you want to search in your root directory /, and a subdirectory called work, then the following line would be replaced with:
<INPUT NAME = "searchpath" TYPE=hidden VALUE="*.html,work/*.html">
You can put as many directories as you want in the string, each separated with a comma.
At present, the following line just looks in the root directory
*********************************************************** -->
<INPUT NAME="searchpath" TYPE=hidden VALUE="*.html">
<TR>
<TD COLSPAN=2 ALIGN=center><input type=submit value="Search!"> <input type=reset><br></TD>
</TR>
</TABLE>
</CENTER>
</FORM>
05/11/98