Page 1 of 1

mantaining search query

Posted: Mon Dec 15, 2008 11:02 pm
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

Re: mantaining search query

Posted: Mon Dec 15, 2008 11:42 pm
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.

Re: mantaining search query

Posted: Thu Dec 18, 2008 3:17 am
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~