'Advanced Search' form for department websites

Page contents > 'Advanced Search' example | Configuring the search form

'Advanced Search' example

This is a more advanced version of the first search form and enables users to further restrict the results of their submission.

Advanced Search:

  

 

Limit results to:

Match:

List Format:

 

Sort by:

 

 

The process of getting the form into your web page is:

Configuring the search form

Configuring this search form is more slightly more complex but straightforward.

COPY THE HTML BENEATH FOR THE ADVANCED SEARCH FORM

<table border="1" width="415" cellspacing="0" cellpadding="5" bgcolor="#FFFFCC">
<tr>
<td width="435"><form method="POST" action="http://www.lse.ac.uk/cgi-bin/htsearch">
<input type="hidden" name="config" value="htdig"><input type="hidden" name="exclude" value="exclude"><p><font
size="4">Advanced Search:</font></p>
<table border="0" width="400" cellspacing="0" cellpadding="0">
<tr>
<td align="left" colspan="3"><input type="text" size="33" name="words">&nbsp;&nbsp; <input
type="submit" value="Search"><p>&nbsp; </td>
</tr>
<tr>
<td align="right"><strong>Limit results to:</strong></td>
<td></td>
<td><select name="restrict" size="1">
<option selected value="http://www.lse.ac.uk/collections/your-department-here/">Your Department</option>
<option value="http://www.lse.ac.uk/collections/your-department-here/a-sub-directory-here/">A Department sub-directory</option>
<option value="No Limit ">No Limit</option>
</select></td>
</tr>
<tr>
<td align="right">Match:</td>
<td></td>
<td><select name="method" size="1">
<option value="and">All Words</option>
<option value="or">Any Word</option>
<option value="boolean">Advanced </option>
</select></td>
</tr>
<tr>
<td align="right">List Format:</td>
<td>&nbsp; </td>
<td><select name="format" size="1">
<option value="builtin-long">Long </option>
<option value="builtin-short">Short </option>
</select></td>
</tr>
<tr>
<td align="right">Sort by:</td>
<td>&nbsp; </td>
<td><select name="sort" size="1">
<option value="score">Score </option>
<option value="time">Time </option>
<option value="title">Title </option>
<option value="revscore">Reverse Score </option>
<option value="revtime">Reverse Time </option>
<option value="revtitle">Reverse Title </option>
</select></td>
</tr>
</table>
<p>&nbsp;</p>
</form>
</td>
</tr>
</table>

^ Back to top

LSE