Hi,
I’m trying to create a multi-page wizard-like form. (Using PHP.)
I’m having trouble making the back and forward buttons act predictably and desirably – and I’m not achieving either at the moment!!
I’ve decided to store temporary data in the Session which means I can use the querystring in whatever way will solve the problems of users clicking the browser’s back/forward buttons.
So my question is: [takes a deep breath] maybe there’s a tutorial out there on exactly how the back button can be understood with respect to forms? How to make the application do what you want when the user presses the back button?
For example, I want to be able to understand the back button’s behaviour so when it comes to implementing certain form behaviours it’s easier to control what happens when the user presses the back button e.g:
a) Goes back to the previous form, with last values entered visible
or
b) Goes back to the previous form, empty
or
c) Ignores the back button, preventing them from going to the previous form
I think my confusion is in how back buttons behave, and across browsers. So specifically, do back buttons revert to cached pages or not? Is there a way of controlling if it uses cached pages or not? Is this behaviour different for POST and GET forms?
Thanks!