February 2nd, 2000, 06:24 PM
I have a form that is to be filled. The summit button call a php script that populates a database. Is there a way to make sure that if someone click on the back button on the browser they do not get a chance to send the same form again.
I hope this is clear enough.
February 3rd, 2000, 04:23 AM
I have just had exactly(well sort of) the same problem, and got round it by doing a select count() before my delete stmt so it checks on a unique value to see if it exists, if it does you can delete and if it doesn't then you can't, which is kind of what you're asking.....basically you cant submit the same info twice
The select stmt is below
"select count(OrderID) from Orders where OrderID='$OrderID'"
in mine it returns a count of either 1 or 0 from which I can do my if() stmt, hope that helps a bit (I dont think there is way to stop them going back and forth and resubmitting)