I have Googled and searched Perlmonks for ways of refreshing a page containing
a form that has just been submitted to my Perl script, and not getting the
"Resend" warning from the browser. 

Scenario: 1) Perl script and HTML::Template supplies a page with a blank form.
 2) User fills out and submits form.  3) Perl script parses form, saves data,
etc., and returns exact page with HTML::Template.  4) User tries to refresh
page and gets "Form data will be resent" error dialog.

It looks like I might have found a way to do this using a standard "location:
" redirect, but not one using HTML::Template
(http://www.perlmonks.org/?node_id=33033):

"A simple way of handling this is to issue an external redirect once the new
data has been successfully saved on POST. This will force the browser to GET
the page again, and it will be safe to use the 'Reload' button."

In all my reading, I've discovered this is a tricky one, even without using
H::T. Has anyone had any experience with this?

Thanks, Brad



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to