mantaining search query

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
bugpanye
Forum Newbie
Posts: 7
Joined: Fri Nov 07, 2008 3:11 am

mantaining search query

Post by bugpanye »

hi all,

i just coded a search page with paginations which navigates with anchors.
however what is the best method i should use to mantain the query through pages to pages?
and so happens my search query is quite long..

thanks in advance
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: mantaining search query

Post by Chris Corbyn »

Is your search query in the URL? Just make sure the URL params are carried from page to page.

If it was POST data you probably want to either change to use GET, or redirect to a page that has enough data in the URL so that you can pass those params around.

Otherwise we're getting into session territory.
bugpanye
Forum Newbie
Posts: 7
Joined: Fri Nov 07, 2008 3:11 am

Re: mantaining search query

Post by bugpanye »

i think.. theres abit too much fields for a GET submission.. i decided to use session then!
hope i dont crack my head on this, thanks~
Post Reply