Search_engine.pl

Search_engine.pl - is a simple search script for your site.

Searches all files in /www named .html .htm or .php for a phrase.

A search page is automatically generated if you call the script without any parameters.

The script takes two optional parameters:

  1. keywords (text) -- takes the terms to search for.
  2. exact_match (flag) -- a hidden field or checkbox which, if present, restricts search results to those exactly matching the keywords, rather than possibly containing the keywords.
Example form:
<form action="/cgi-world/search_engine.pl" method="POST">
Search terms: <input name="keywords" type="text" size=20 >
<br>
Exact match? <input name="exact_match" type="checkbox">
<br>
<input type="submit" name="search" value="search">
</form>

Return to Support Index