session help
Moderator: General Moderators
session help
i need help on this page i am coding... i need to make it not be able to go back and allow the users to enter in the same data or go back and repost same data....the error i am having is a user can create a "case" and then hit backspace and go back to the main menu and see redo the same work, duplicating himself...how can i stop this? thank you
Re: session help
If you're using a db, you could check the entry against the db. If the user has entered that information before, redirect and error or just redirect to the page it would have redirected to if they had entered a new entry but with the old entry's information.
Re: session help
Woah, weird, I thought you were replying to yourself
The typical answer is to put something into $_SESSION saying what data got entered, then when you do the insert you make sure that the data doesn't exist in $_SESSION already.
But really, what watson516 said is just as easy and doesn't require storing more information than necessary.
The typical answer is to put something into $_SESSION saying what data got entered, then when you do the insert you make sure that the data doesn't exist in $_SESSION already.
But really, what watson516 said is just as easy and doesn't require storing more information than necessary.
- Skoalbasher
- Forum Contributor
- Posts: 147
- Joined: Thu Feb 07, 2008 8:09 pm
Re: session help
I was about to post that.. ^^^^^^^^
edit: ok, not that, the one before it.
edit: ok, not that, the one before it.