Kolinski Posted August 9, 2013 Share Posted August 9, 2013 Hi all, I really need some help on this one. I've created a very complex page with a number of buttons that load content in dynamically. (There are quite a few combinations) What I would like to know is, is there a way to hard-code if an option is selected on one page that that selection stay open on another page ? For example I'm on the globe.html page having selected option 3. I open the view.html page and that page starts on option 3 due to it being selected on the previous page. Any help would be very appreciated Quote Link to comment https://forums.phpfreaks.com/topic/280975-carrying-an-on-state-to-the-next-page-on-re-direct/ Share on other sites More sharing options...
denno020 Posted August 9, 2013 Share Posted August 9, 2013 Seeing as though you're just using html, and no php, you'd want to use javascript to set a cookie, or to use local storage. You might also be able to set the values in a GET variable, which is appended to the URL in the address bar, and then pull them in on the view.html page using javascript again. Hope that helps you get a start. Denno Quote Link to comment https://forums.phpfreaks.com/topic/280975-carrying-an-on-state-to-the-next-page-on-re-direct/#findComment-1444133 Share on other sites More sharing options...
Kolinski Posted August 11, 2013 Author Share Posted August 11, 2013 I had a look at HTML5 local storage If I have 6 <a href TAGS how can I parse that href to be remember when changing page ? An example snippet would be great Quote Link to comment https://forums.phpfreaks.com/topic/280975-carrying-an-on-state-to-the-next-page-on-re-direct/#findComment-1444449 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.