Hi
I have an index.php page with two radio buttons on a form that control the visibility of certain div’s on the form. If a user leaves the index.php page, without hitting the form submit button, by selecting a menu item, which loads another page on the same site, then hits the browser back button I want the form to re-display as it did at the time the user left the indx.php page, including any data the user may have entered.
One way to control this may be if the user selects the first radio button a php session variable is set to 1. If the user selects the second radio button the php session variable set to 2. When the user leaves the page then returns, code in the index.php page header links a CSS file based on the php session variable. The linked CCS file displays the proper elements of the form.
What code to I need to pass a variable to the php session variable based on the selection of the radio buttons?
Is there a better way to do this?