I have a form that submits with POST
For the user to sort the results, there are a few links.
But if I use classic link I will lose the POST info from the previous search
What would be the best way to handle this?
Thx
Chris
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Store the POST’ed info in
$_SESSION, and use that to remember search settings when you sort them.Alternatively, you could use pure client-side javascript to sort the results in-browser.
If it’s publicly viewable, and the form submit doesn’t change any data, I’d suggest you use GET instead.