ok, i have a search that i am paginating with 20 results per page.
i have a variable "firsttime" that specifies whether this is the first time the user has clicked the search, so i create the query using (if (firsttime) {create $querystring} else {$querystring = $_GET('querystring')})
so, it looks something like this:

  1. user types in words into search box and clicks submit
  2. search.php recognizes that variable firsttime is true and page=1, and create query string by breaking down user's search words.
  3. search.php displays results (max 20), and creates links to itself specifying 'page=2'or'page=3' etc.

here is the problem, how do i write those links so that i send the variable $querystring to search.php using an html link, BUT using the get method?

Any Suggestion would be helpful, thnx

    Any variables you put in the URL are automatically assumed $_GET[]. So you could just write it as <a href="search.php?querystring=".$querystring.">

      Write a Reply...