Forum Moderators: coopster
Looking at google for example, I see that I need to keep the text in the search box when the page refreshes and when you navigate to the second page.
I think I need to use a session for this, however I have not been successful at doing this. The search is on every page. Here is the site if you need an idea of what I am trying to accomplish. Any help would be much appreciated.
[edited by: eelixduppy at 5:10 am (utc) on July 11, 2008]
[edit reason] removed URL [/edit]
Writing and reading is incredibly easy:
$_SESSION['criteria'] = $criteria;
$criteria = $_SESSION['criteria'];
(And no, they don't have to be named the same, I just find it easier on the brain).
As a side note, google, yahoo, and msn put the search criteria in the url's query string.