PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

go straight to search.php?zoom_query=...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • go straight to search.php?zoom_query=...

    Hi, I have installed zoom search and it works fine.
    In my website I have putted a text box in all pages which is used for searching. The form looks like this:

    Code:
    <form action="search/search.php" method="get">
                <input name="search_text" type="text" value="search" class="search_box" />
                <input name="submit" type="image" src="images/search.jpg" />
    </form>
    When I submit the search text, I get the results page with this url:
    www.website.com/search.php?search_text=termsubmit.x=6&submit.y=3
    This page shows no results and what I have to do to actually get results is to re-submit the search, then I get the page
    www.website.com/search.php?zoom_query=term
    and this is the right page that should be shown for results.

    How can I force my search form to go straight to the
    www.website.com/search.php?zoom_query=term page instead of
    www.website.com/search.php?search_text=term page?

  • #2
    I found the solution, I just had to set the name of the textfield as "zoom_query"

    Comment


    • #3
      Correct. See also these FAQ
      Q. How do I add search boxes to my web pages?
      Q. How do I modify the appearance of the search form?
      Q. How do I create search forms with images for buttons, etc.?

      Comment

      Working...
      X