This has been a problem ever since the first days of the Web. There's not much you can do about it. One possibility is to run your application in a new window that has no toolbar and menu bar (like this forum), but the user can still right-click on the page and select back from the context menu.
Another possibility to avoid data duplication is to add a hidden field to your form and populate it with a randomly generated string. You can then create a table that stores these strings whenever your script makes changes to your database as a result of a form submition, but only if the currently submitted random string is not already in the table. A safe way to create these random strings is to use SYS(2003) + LTRIM(STR(Request.CurrentChannel)).
Sent by Jeff Grippe on 07/26/2004 08:22:46 AM:
What is the best technique for controlling the flow of the user through a FoxWeb application.
I am running into problems where users are using the Back Button when I only want to permit them to go forward through the pages in the sequence that I intend. The results are duplication of data.
How do you keep a user moving through a sequence of pages in order without the ability to go back?