ainoy31 Posted September 18, 2008 Share Posted September 18, 2008 Hello- I have a page with two radio buttons. One of the radio buttons will display a form for them to fill out and submit to the next page. My question is how to use the back button and not lose data on the page that I need to go back to? I have tried the following but the form clears even when a user clicks this link to go back and edit <a href=\"javascript:history.go(-1)\">Go back</a> Let me know if there is anything else needed. Much appreciation. AM Quote Link to comment https://forums.phpfreaks.com/topic/124852-back-button/ Share on other sites More sharing options...
Maq Posted September 18, 2008 Share Posted September 18, 2008 Depending on how much data you're storing in the form, you could try to store the data in the session. Quote Link to comment https://forums.phpfreaks.com/topic/124852-back-button/#findComment-645062 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.