/    Sign up×
Community /Pin to ProfileBookmark

Advanced: Back/Forward buttons, Forms and Query Strings

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!

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@opifexOct 13.2008 — there is a good tutorial here. it will take you through step by step in the construction of a form. can be easily adapted.

i use a php model that i developed using a couple of things from this tutorial and also a javascript model for splitting forms into multiple pages.

good luck!
×

Success!

Help @joflo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...