JavaScript
Posted: Fri Apr 04, 2003 7:02 am
Hi All,
I have a form that has multiple select and input boxes. On changing a value in the first select box I use JavaScript to dynamically change the options in other select and input boxes, then the user selects from the options created dynamically in the second select box and that dynamically changes the options in a third select box. Then the user may select an option in the third select box which will change values on the remainder of the form. This is all fine and well until the user submits the form and moves to the next page. When the user is on the next page all of the $_Post values are correct but if the user clicks the browsers back button the dynamically created values in the third select box on the first page are either wrong or missing.
This is a major problem as the concept is to allow the user to configure equipment that we make. The first select box is for the units type which based on the units type, things are changed in the second select box showing options that are available for that type of unit. Based on the changes in the second select box the available model numbers are displayed in the third select box allowing the user to select from available model numbers. Based on the user selected model number in the third select box things like size, height and width are set on the rest of the form. If the user selects the model number they want, moves to the next page, then uses the browsers back button to go back to the first page and the model number is wrong or missing I risk (and we all know how users can be) submitting bad data which just is not acceptable.
Can anyone help?
John M
I have a form that has multiple select and input boxes. On changing a value in the first select box I use JavaScript to dynamically change the options in other select and input boxes, then the user selects from the options created dynamically in the second select box and that dynamically changes the options in a third select box. Then the user may select an option in the third select box which will change values on the remainder of the form. This is all fine and well until the user submits the form and moves to the next page. When the user is on the next page all of the $_Post values are correct but if the user clicks the browsers back button the dynamically created values in the third select box on the first page are either wrong or missing.
This is a major problem as the concept is to allow the user to configure equipment that we make. The first select box is for the units type which based on the units type, things are changed in the second select box showing options that are available for that type of unit. Based on the changes in the second select box the available model numbers are displayed in the third select box allowing the user to select from available model numbers. Based on the user selected model number in the third select box things like size, height and width are set on the rest of the form. If the user selects the model number they want, moves to the next page, then uses the browsers back button to go back to the first page and the model number is wrong or missing I risk (and we all know how users can be) submitting bad data which just is not acceptable.
Can anyone help?
John M