I have an order form which the user submits. Then a page appears stating 'Your order has been successfully placed'. My problem is that some users feel the need to use their browser's BACK button to return to the order form and submit it a 2nd, even a 3rd time.
In other areas of the program it is possible to return to the order form by clicking on <A href="orderform.asp?foo=1"></A>. In those cases the variable 'foo' is recognized by orderform.asp and a function is called which zeros out all the form's fields so there's no chance of submitting the form multiple times. But how can I accomplish the same thing if someone returns to the order form via the BACK button? Is there some way that the order form can recognize that it was the BACK button that delivered the user and call that same function?
Before you suggest that orderform.asp always zero out its fields upon loading, be aware that there are instances where I do not want it zeroed out (such as returning to edit quantities). In those instances foo=0 and the zeroing function is not called.
~ Gary
In other areas of the program it is possible to return to the order form by clicking on <A href="orderform.asp?foo=1"></A>. In those cases the variable 'foo' is recognized by orderform.asp and a function is called which zeros out all the form's fields so there's no chance of submitting the form multiple times. But how can I accomplish the same thing if someone returns to the order form via the BACK button? Is there some way that the order form can recognize that it was the BACK button that delivered the user and call that same function?
Before you suggest that orderform.asp always zero out its fields upon loading, be aware that there are instances where I do not want it zeroed out (such as returning to edit quantities). In those instances foo=0 and the zeroing function is not called.
~ Gary