Answers Search Help
Boston University home page
Creating a Customized Search
 
    Search Options
 
 
    Creating Your Search
 
    Also See
   

Site Search

When to use this

Use this type of custom search if you want to serve a search of your college or department Web pages. You can build a separate search page, then add links to this page on your existing pages. Or, you can incorporate a search box into your existing pages.

What it does

This code defines a form where visitors input and search for key words. It returns files found anywhere within the site you specify.

To modify the code for your own use replace your_site_directory with the directory name of your site.

Example

Code

<form action="http://search.bu.edu/search" method="get">

	<label for="q">Search</label>

	<input type="hidden" name="as_sitesearch" value="www.bu.edu/your_site_directory"  />

	<input type="text" name="q" id="q" value="" />

	<input type="submit" value="Go" />

</form>
WebCentral Using Publishing Learning Training Consulting WebCentral
Answers Search Help
NIS  |  OIT  |  Boston University  |   February 7, 2007