chelseaphil Posted January 18, 2007 Share Posted January 18, 2007 I think this should be something straightforward. I hope so anyway.After using a search facility on my proeprty rental site a list is generated in a randomised order. A visitor then selects a property to view in the site. If they then click the back button on the browser to return to the list I need it to display the list in the same order as it was after the first search. Is there a piece of code that I can insert that would enable this to happen? I am a bit of a novice, so plain language would be appreciated. And where would I insert it? Many thanks in advance. Link to comment https://forums.phpfreaks.com/topic/34751-need-to-regenerate-a-list-after-using-back-button/ Share on other sites More sharing options...
Caesar Posted January 18, 2007 Share Posted January 18, 2007 Well, if you're going to randomize it, you can use cookies or sessions to store the initial results. The visitor would then have to submit a new search to get diferent results. I suppose it all depends on the code design/logic you're currently using, and what would be easier to implement with what you already have. Link to comment https://forums.phpfreaks.com/topic/34751-need-to-regenerate-a-list-after-using-back-button/#findComment-163893 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.