[Home] [Databases] [Search] [WorldLII] [Feedback] [Help] | |
Search Form Examples |
|
You are here: AustLII >> Technical Library >> Web Developers >> Search Form Examples |
Here are some HTML code snippets that you can cut-and-paste into your own web pages to provide your users with an AustLII search interface. You can tweak these pages to your liking.
<FORM METHOD="GET" ACTION="http://www.austlii.edu.au/cgi-bin/sinosrch.cgi"> <INPUT TYPE="hidden" NAME="meta" VALUE="/au"> <INPUT TYPE="hidden" NAME="method" VALUE="auto"> <INPUT TYPE="hidden" NAME="results" VALUE="20"> <B>Enter search query:</B><BR> <INPUT NAME="query" size="35" VALUE="" TYPE="TEXT"> <INPUT TYPE="submit" VALUE="Search AustLII"> </FORM>
It looks like this:
The next bit of code adds some user control over the search options.
<FORM METHOD="GET" ACTION="http://www.austlii.edu.au/cgi-bin/sinosrch.cgi"> <INPUT TYPE="hidden" NAME="meta" VALUE="/au"> <B>Enter search query:</B><BR> <INPUT NAME="query" size="35" VALUE="" TYPE="TEXT"> <INPUT TYPE="submit" VALUE="Search AustLII"><BR><BR> <INPUT TYPE="radio" NAME="method" VALUE="auto" CHECKED>Auto-search <INPUT TYPE="radio" NAME="method" VALUE="any">Find any of these words <INPUT TYPE="radio" NAME="method" VALUE="all">Find all of these words <INPUT TYPE="radio" NAME="method" VALUE="title">Find this title <INPUT TYPE="radio" NAME="method" VALUE="phrase">Find this phrase<BR><BR> Number of results per page: <SELECT NAME="results"> <OPTION VALUE="10">10</OPTION> <OPTION VALUE="20" SELECTED>20</OPTION> <OPTION VALUE="50">50</OPTION> <OPTION VALUE="100">100</OPTION> </SELECT> </FORM>
It looks like this:
Here is a search form that covers only the High Court and Federal Court of Australia:
<H3>Search the High Court and Federal Court databases:</H3> <FORM METHOD="GET" ACTION="http://www.austlii.edu.au/cgi-bin/sinosrch.cgi"> <B> for </B> <INPUT NAME="query" size="35" VALUE="" TYPE="TEXT"> <INPUT TYPE="hidden" NAME="meta" VALUE="/au"> <INPUT TYPE="hidden" NAME="mask_path" VALUE="au/cases/cth/HCA"> <INPUT TYPE="hidden" NAME="mask_path" VALUE="au/cases/cth/FCA"> <B> using </B><SELECT NAME="method"> <OPTION VALUE="auto" SELECTED>auto-search</OPTION> <OPTION VALUE="any">any of these words</OPTION> <OPTION VALUE="all">all of these words</OPTION> <OPTION VALUE="phrase">this phrase</OPTION> <OPTION VALUE="title">this case name</OPTION> </SELECT> <INPUT TYPE="submit" VALUE="Search"><BR> <BR>Number of results per page: <SELECT NAME="results"> <OPTION VALUE="10">10</OPTION> <OPTION VALUE="20" SELECTED>20</OPTION> <OPTION VALUE="50">50</OPTION> <OPTION VALUE="100">100</OPTION> </SELECT> </FORM>
It looks like this:
Search the High Court and Federal Court databases: