Search Box Templates

Included here are templates for search boxes. Just copy and paste the code, modify it according to your needs and you're done. It's that simple.


A stripped-down template for the minimalist approach

This first template is very simple. It gives the user no options to define his own search--you as the webmaster define all the parameters by default. It represents a bare-bones approach.

<form name="seek1" method=GET accept-charset="iso-8859-1" action="http://search.tennessee.edu/query.html">
<table border=1>
<tr>
<td nowrap>
<p>
<input type=hidden name=ht value="0">
<input type=hidden name=col value=utk>
<input type=hidden name=qp value="">
<input type=text name=qt size=30 value="" maxlength=1991>
<input type=hidden name=qs value="">
</td>
</tr>
<tr valign=top>
<td nowrap>
<a href="http://www.ultraseek.com/">
<img alt="" src="http://search.tennessee.edu/images/littlelogo.gif" width=126 height=30 border=0 align=right>
</a>
<input type=hidden name=qc value="">
<input type=hidden name=pw value="100%">
<input type=hidden name=ws value="0">
<input type=hidden name=la value="en">
<input type=hidden name=qm value="0">
<input type=hidden name=st value="1">
<input type=hidden name=nh value="10">
<input type=hidden name=lk value="1">
<input type=hidden name=rf value="0">
<input type=hidden name=oq value="">
<input type=hidden name=rq value="0">
<input type=hidden name=si value="1">
<input type=submit value=" search " class=submit>
</td>
</tr>
</table>
</form>


A template providing user options

This template illustrates how to give options to the user. In this example involving the Agriculture Institute, the user is presented the option to search the entire ag collection or to hone the search to the indicated specific sub-domains. Radio buttons and qp variables are used to implement the choice.

Search: Departments
all
Animal Science
Food Sciences
Bioengineering

<form name="seek1" method=GET accept-charset="iso-8859-1" action="http://search.tennessee.edu/query.html">
<table cellspacing=0 cellpadding=6 border=1 width="50%">
<tr>
<td bgcolor="#ffffff">
<table cellspacing=0 cellpadding=1 width="100%">
<tr valign=baseline>
<td width="10%" align=right>
<b>Search:</b>
</td>
<td width="2%" align=right>
</td>
<td width="88%">
Departments</td>
</tr>
<tr valign=baseline>
<td width="10%"></td>
<td width="2%"></td>
<td width="88%">
<input type=radio name=qp value"url: http://web.utk.edu/~ansci url: http://web.utk.edu/~foodsci site: bioengr.ag.utk.edu" checked>all<br> <input type=radio name=qp value="url: http://web.utk.edu/~ansci" >Animal Science<br>
<input type=radio name=qp value="url: http://web.utk.edu/~foodsci" >Food Sciences<br>
<input type=radio name=qp value="site: bioengr.ag.utk.edu" >
Bioengineering<br>
</td>
</tr>
<tr>
<td colspan=3 nowrap>
<p>
<input type=hidden name=ht value="0">
<input type=text name=qt size=45 value="" maxlength=1991>
<input type=hidden name=qs value="">
</td>
</tr>
<tr valign=top>
<td colspan=3 nowrap>
<a href="http://www.ultraseek.com/">
<img alt="" src="http://search.tennessee.edu/images/littlelogo.gif" width=126 height=30 border=0 align=right></a>
<input type=hidden name=qc value="">
<input type=hidden name=pw value="100%">
<input type=hidden name=ws value="0">
<input type=hidden name=la value="en">
<input type=hidden name=qm value="0">
<input type=hidden name=st value="1">
<input type=hidden name=nh value="10">
<input type=hidden name=lk value="1">
<input type=hidden name=rf value="0">
<input type=hidden name=oq value="">
<input type=hidden name=rq value="0">
<input type=hidden name=si value="1">
<input type=submit value=" search " class=submit>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</form>