Hi there-
I have a web application to maintain and one of the problems I am
dealing with is this:
1) user arrives at a page (URL=A) and it displays a list of stuff.
2) User clicks submit on a form pertaining to an item in the list.
2) Form is submitted, server performs operation, server sends back
same page with updated data.(URL=B)
3) User clicks reload
4) The form is submitted again (thanks to URL B), server tries to
perform same operation and fails.
Now I could use a POST, but then I'd get that annoying resubmit post
dialog and that's just as bad. I've seen stuff like, "DO NOT CLICK
THIS BUTTON MORE THAN ONCE" warnings before, but that won't fly with
my boss.
I know what the problem is, the URL is altered after I submit (which
includes a command that tells the server what action to perform).
When they reload, URL B is reissued. I need to replace URL B with the
original URL A. then the problem becomes, how do I save URL A int he
first place?
How can I get the form to submit only once?
thanks!
troy