August 20th, 2000, 07:37 PM
I've been looking for a way to destroy "url variables" so that once a user submits to the db, they can't hit their "back" button and resubmit the data.
Is there a good way to ensure this doesn't happen? Like clearing all the variables from the url?
August 20th, 2000, 08:47 PM
you can destroy a variable using unset() function.
they can't hit their "back" button and resubmit the data.
i think for this purpose you have 2-3 options.first option is that you can expire the previous page after updating the database.and redirect user to another 'thank you page'.that is what happening here in this discussion forum posting.so if user go back it will show an expired page.
second option is that,make some database fields unique.and check wether that data is already their in the database or not .show an error message if the record is already exist in the database.
www.jobxyz.com-IT Career Portal
"The fear of the LORD is the beginning of knowledge..."
August 20th, 2000, 09:03 PM
Can I have the page expire and if they go back to it, it can have a custom message:
ie: "This page has exired, click here"
Can you give me the name of the function to expire?
Thank you very much!