Web Administration: Web Resources
Tutorials
Creating a Custom Search Page
To add a search form like the one below to your Web site, insert the following code in your page in the desired location and then replace the Web Administration paramaters with your top-level domain name and the name of your Web site. For example, in the code below replace "www.webadmin.ufl.edu" and and "Web Admin Site" with your own parameters.
<form action="http://search.ufl.edu/search" method="get">
<input type="hidden" name="site" value="www.webadmin.ufl.edu" />
<label for="source">
<select id="source" name="source">
<option value="web" selected="selected">Web Admin Site</option>
<option value="allweb">UF Web with Google</option>
<option value="phonebook">UF Phonebook</option>
</select>
</label>
<br />
<label for="searchbox">
<input name="query" id="searchbox" type="text" size="20" value="Search" alt="Search" onfocus="select();" />
</label>
<input type="submit" name="Submit" value="Go" />
</form>
Notes:
- The UF search engine also supports the restriction of search results to specified subdirectories. For example, to search the Web Administration tutorials, the "www.webadmin.ufl.edu" URL above could be given as www.webadmin.ufl.edu/tutorials.
- No schema is necessary at the beginning of the URL you use (i.e., do not add
http://). - If you don't wish to use the pulldown menu of search options, remove everything from
<label for="source">to the corresponding</label>and change the form action tohttp://search.ufl.edu/web(example). - Sites are automatically indexed by the UF search engine once a week. In order for the UF search engine to find new sites, at least one link to the new site must be present on an existing site.