Re: How to avoid accidental re-sending of POST data

2004-12-14 Thread David Dorward
On Mon, 2004-12-13 at 18:58 -0500, Ingo Weiss wrote: > print $query->redirect('http://somewhere.else/in/the/world'); > > In the above example, the document that was originally requested does > never make it to the client, right? The client should receive the entire document that your script sends

Re: How to avoid accidental re-sending of POST data

2004-12-13 Thread Ingo Weiss
> redirect (302 response) after handling the form That's interesting! Thanks! I took a look at the documentation: print $query->redirect('http://somewhere.else/in/the/world'); Is this how it is done? In the above example, the document that was originally requested does never make it to the cli

Re: How to avoid accidental re-sending of POST data

2004-12-04 Thread Marek Kilimajer
Ingo Weiss wrote: Hi, this must be a common problem and I was wondering what commonly used strategies to solve it are: How can I avoid that a user re-sends a POST form when hitting the reload button on a result page? The browser typically warns you when you want to do that but I was wondering wheth

Re: How to avoid accidental re-sending of POST data

2004-12-03 Thread Randal L. Schwartz
> "Ingo" == Ingo Weiss <[EMAIL PROTECTED]> writes: Ingo> this must be a common problem and I was wondering what commonly used Ingo> strategies to solve it are: Ingo> How can I avoid that a user re-sends a POST form when hitting the reload Ingo> button on a result page? Ingo> The browser typ

RE: How to avoid accidental re-sending of POST data

2004-12-02 Thread Bob Showalter
Ingo Weiss wrote: > Hi, > > this must be a common problem and I was wondering what commonly used > strategies to solve it are: > > How can I avoid that a user re-sends a POST form when hitting the > reload button on a result page? You can't. If the transaction is not repeatable, you need to have

Re: How to avoid accidental re-sending of POST data

2004-12-02 Thread Lawrence Statton
> I'm no CGI expert, but my best guess is that you are not going to be able to > stop the user from resending the data > [snip out a technique to assist in ignoring repeat data] This deserves to be drilled into every beginning CGI programmers brain: You cannot PREVENT the client from doing ANYTH

Re: How to avoid accidental re-sending of POST data

2004-12-01 Thread Paul Archer
I'm no CGI expert, but my best guess is that you are not going to be able to stop the user from resending the data, so you are going to have to make sure you ignore the resent data. I would do this by generating a random number in a hidden input field when creating the form. Then you can check that