Hi.
I'm working on the submittion page. User fill's out the info clicks the submit button and all the info is stored in to sql database. All the info is transfered trough form fields.
The problem is if the user then goes to some other page and click back button it inserts everything in to db again. How can I prevent this from happening?
I was thinking of setting some variable in session on submittion page, then on next page checking if the variable is set. If it is submitting everything to db then "unsetting' the variable.
Will this be a good way of doing this?
EDIT:
Ok I tried that and it works when user goes to next page then clicks back. But if the user clicks the back button to go to submittion page then forward again, it still resubmites everything.
Thx.