preventing form submission
Has anyone any suggestions as to how to prevent form submission by the using pressing the refresh or back buttons? Garry
----- Original Message ----- From: "Garry Saddington" <garry@schoolteachers.co.uk>
Has anyone any suggestions as to how to prevent form submission by the using pressing the refresh or back buttons?
I use hidden form field with timestamp ZopeTime. JL.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Garry Saddington wrote:
Has anyone any suggestions as to how to prevent form submission by the using pressing the refresh or back buttons?
Issue a redirect from the POST handler: the browser won't "land" again on the original POST target URL, but only only on the redirected page, or the original form. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAktogs0ACgkQ+gerLs4ltQ4OagCfTgX+ZNJdpnO/Au4q3GbyE3dT +kgAoIrPJf69OqTJA8pzC0f4uR/71RGA =17pI -----END PGP SIGNATURE-----
Tres Seaver wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Garry Saddington wrote:
Has anyone any suggestions as to how to prevent form submission by the using pressing the refresh or back buttons?
Issue a redirect from the POST handler: the browser won't "land" again on the original POST target URL, but only only on the redirected page, or the original form.
+1, I've been happy with this technique. Shane
Is there a step by step guide to document how to do this? On Tue, Feb 2, 2010 at 6:03 PM, Shane Hathaway <shane@hathawaymix.org>wrote:
Tres Seaver wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Garry Saddington wrote:
Has anyone any suggestions as to how to prevent form submission by the using pressing the refresh or back buttons?
Issue a redirect from the POST handler: the browser won't "land" again on the original POST target URL, but only only on the redirected page, or the original form.
+1, I've been happy with this technique.
Shane _______________________________________________ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
-- David Bear College of Public Programs at ASU 602-494-0424
participants (5)
-
David Bear -
Garry Saddington -
Jaroslav Lukesh -
Shane Hathaway -
Tres Seaver