Expire form after submitted if user attempts to go back

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
frshjb373
Forum Newbie
Posts: 4
Joined: Tue Mar 06, 2012 10:09 am

Expire form after submitted if user attempts to go back

Post by frshjb373 »

Not sure if this is the best place to be posting this topic so please let me know if this can better addressed somewhere else. Anyways, I have a form, that upon submission creates a return shipping label automatically. To avoid users going back and attempting to resubmit the form (which will thereby run the script to create another shipping label), I'd like to figure out a way to completely expire that form page...or redirect the user to another page if going back.

Any advice or resources would be much appreciated. Thanks!
pbs
Forum Contributor
Posts: 230
Joined: Fri Nov 07, 2008 5:31 am
Location: Nashik, India
Contact:

Re: Expire form after submitted if user attempts to go back

Post by pbs »

You can set unique key for shipping label field in database or to any other field which is unique, so that data will not be repeated when page is refreshed or anybody click the back button. May this will help you.
Post Reply