Keith Devens .com |
Sunday, October 12, 2008 | ![]() |
| Of all tyrannies a tyranny sincerely exercised for the good of its victims may be the most oppressive. It may... – C.S. Lewis | ||
|
| ← Double check pictures of your house you put on the Internet | Zope.org - Formulator → |

Keith (http://keithdevens.com/) wrote:
Keith (http://keithdevens.com/) wrote:
Testing in Internet Explorer.
Keith (http://keithdevens.com/) wrote:
Testing in Opera.
Keith (http://keithdevens.com/) wrote:
Testing in Opera again.
Keith (http://keithdevens.com/) wrote:
Testing in Opera one more time.
Keith (http://keithdevens.com/) wrote:
Testing in Opera for the last time.
Keith (http://keithdevens.com/) wrote:
Testing with Ethereal so I can try to figure out what Opera's doing.
Keith (http://keithdevens.com/) wrote:
Testing one more time with Ethereal and Opera.
Keith (http://keithdevens.com/) wrote:
And one more time with gzip compression off.
Arnaud wrote:
A possible technique to re-submission is to put a token in a hidden field. If the page is resubmitted you check if the token was used, if you so you don't take into account the user action.
like
input hidden value=48a24b70a0b376535542b996af517398
on the server you create a file with the name as the value above when the form is submitted. Checking if a file with a name as token value you don't take into account the submission.
Keith (http://keithdevens.com/) wrote:
Arnaud, I know there are many ways to protect against duplicate form submission, but that's only one benefit of the PRG pattern. The main one is getting rid of the "Resubmit this form data?" popup, which also allows you to use the back and forward buttons in your browser despite a form submission.
Levin wrote:
Testing with Opera
Arnaud wrote:
Yes true, I was a bit off topic but it may help some people reading it (who knows 
I've noticed though that when using a token I would not get the resubmitted popup though I haven't looked into it too much.
Ian Bicking (http://blog.ianbicking.org) wrote:
There's a number of 3xx redirect codes, some of them work better than others. I think 303 is the right one for PRG. I've found that other ones work, but sometimes act funny.
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):
Generated in about 0.176s.
(Used 8 db queries)

testing