You can force a browser to think you're accessing a new URL (and thereby force it into the history) by adding a dummy "uniquifier" to the URL. As long as the URL "looks different" to the browser (i.e., it's not character-for-character identical), the browser will treat it as a "different page". Pages with uniquifiers get added to the history, and can be back-buttoned to.
Your server can completely ignore the uniquifier, as long as it sends a new one every time.Try something like this: http://myserver.com/cgi-bin/myscript.cgi?u=438292& ..., and just keep changing the number. For forms, use a URL like this as the form's action: http://myserver.com/cgi-bin/myscript.cgi/u432443, which will do the same thing.
You have the disadvantage that the user can back-button to a page and then proceed "forward" again from there, generating the kind of problem you were speaking of, but you can (if you've got some kind of a session mechanism set up) remember the uniqifier from a "problem" page and skip doing the thing you don't want if the uniqifier is the one you remembered.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.