How do I modify the search form on the search page?

Top  Previous  Next

If you wish to modify the search form, you can either edit the script, or define your own search form, with the following HTML form code:

If you wish to use your own search form, you may want to turn off the form displayed by the script from the Search Page configuration tab, under the Form Format setting. See ‘Configuring Zoom’ for more information.

  <form method="GET" action="search.php">

        <input type="text" name="zoom_query" size="20">

        <input type="submit" value="Search">

        Results per page: 

        <select name="zoom_per_page">

            <option selected>10</option>

            <option >20</option>

            <option >100</option>

        </select>

        <br><br>

        Match: 

        <input type="radio" name="zoom_and" value="0" checked>

        any search words 

        <input type="radio" name="zoom_and" value="1">

        all search words 

 </form>

 

lightbulb

Note: You must change “search.php” in the above HTML to the appropriate search page: that is, “search.asp” for ASP users, “search.cgi” for CGI users, and “search.html” for Javascript users.

 
If you have categories enabled, and you wish to include the category drop-down boxes in your custom search form, then you will need to manually specify these categories in HTML. Because these options vary depending on your categories configuration, we can not provide the exact HTML you will require. The best method is to simply allow the search script to generate the full search form once, click on "View Source" in your browser and copy and paste the categories HTML required for your particular configuration.