On 2005-07-31, Ron Savage <suppressed> wrote:
> Hi Folks
> How do you handle cases such as the user using the browser's back button and
> then re-submitting a form they've just submitted?
For forms that insert the result into a database: the unique ID can be
pre-selected and loaded into a hidden field in the form. No extra check
is needed, in the sense that the database will only let you create one
record with that unique ID.
If someone loads the the insert form a bazillion times you could
eventually run out of numbers in the database sequence. I tend not to
worrk about that.
Mark
--
http://mark.stosberg.com/
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.