Forum Moderators: coopster

Message Too Old, No Replies

search form + php

using same form in 2 pages

         

coder1

8:54 pm on Sep 19, 2008 (gmt 0)

10+ Year Member



I have 2 forms, in 2 different pages. when user first enters the site, they get a search page (search.php), which is a form with various droplist and few radio buttons. when they hit submit, they are directed to searchresult.php, which displays of course the search result (I have page with 3 column layout), the left column, search result is displayed and the right column has the form same as the 1 in search.php page with perivously selected values. when i m in the searchresult.php, i want change something on form (perhaps selcet something different) and hit submit, i don't get any results, even though there are results to be returned.

on the searchresult.php am post to variables to build my query string. I have seen one example used on the rightmove website, an trying use same technique.

Many thanks.

minghuhuang

6:44 am on Sep 22, 2008 (gmt 0)

10+ Year Member



You can used get method to the way of passing parameters to page searchresult.php.