View Full Version : stop changing the URL after a search
04-25-2012, 10:59 PM
I have a file search file "search.php" and after a search the link is changed to "search.php?type=&name=&class=black&submit=submit" (or whatever the search was. I`m using GET from a dropdown menu to select the value that I search).
So, how can I do to stop changing the URL name after submit the search?
I need this because I have real problems pagining the results.
04-25-2012, 11:12 PM
No matter what you have to change something. Regardless of if you post or get the search, the criteria will either show directly or be transposed into some sort of searchid type cache when you move from page to page.
Paging it is only a matter of adding a single additional field to indicate what page you are on. The link still has to include either the search criteria or a cached id.
The only other route would be to use sessions. I don't really like this approach though since its quite difficult to handle it properly since you cannot tell when the user has "finished" with their search, and all that criteria will still stick around and show when they hit the search menu again.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.