Jump to content

'Page Expired' message when a user uses their browser's 'back' button?


Jack.Straw

Recommended Posts

Hi.  Is there a way to give people a 'page expired' message if they use the 'Back' button on their browser?  Here's the scenario:

[list]
[*]User fills out a form and submits it.
[*]On submittal the browser uses CGIemail to email the form contents back to the user.
[*]The CGIemail 'success' value instructs the browser to load a custom success page, where a hidden form with hidden values is auto-submitted, using CGIemail again to send another email to an administrator.
[*]The CGIemail 'success' value from the 2nd 'hidden' form instructs the browser to load the real success page, where the user is notified that the process was a success.
[/list]

This all works great.  When the user submits the form an email is sent to their email address, and then another email containing different information is sent to an administrator.  However, if the user tries to use the 'back' button on their browser from the final success page, a duplicate email gets sent.  How could i prevent this?

Thanks in advance of any advice you can offer!
-Jack
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.