It turned out that there was a coding error which only showed up when the user hit the back button. My script stores a CGI.pm query object on Page 2 and then retrieves and deletes it on Page 3.
However, users who hit the back button on Page 3 to return to the form on Page 2 and then resubmitted got an error, because some of the CGI variables stored in the CGI query object no longer existed.
The proper solution turned out to be to check that a stored query object exists, and provide the user with a helpful warning message if it does not. The advantage of this approach is that the browser's back button still works the same way as it always does, and the user knows what is going on.
In reply to Re: How To Disable A Browser's Back Button in CGI.pm?
by sierrathedog04
in thread How To Disable A Browser's Back Button in CGI.pm?
by sierrathedog04
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |