PDA

View Full Version : go straight to search.php?zoom_query=...


ktsixit
10-29-2008, 12:33 PM
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:

<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?

ktsixit
10-29-2008, 02:11 PM
I found the solution, I just had to set the name of the textfield as "zoom_query" :cool:

wrensoft
10-29-2008, 08:17 PM
Correct. See also these FAQ
Q. How do I add search boxes to my web pages?
(http://www.wrensoft.com/zoom/support/faq_howto.html#simpleform)Q. How do I modify the appearance of the search form?
(http://www.wrensoft.com/zoom/support/faq_howto.html#modifyform)Q. How do I create search forms with images for buttons, etc.? (http://www.wrensoft.com/zoom/support/searchbox.html)