Johnstone, Colin wrote:
Hi all,

I am writing my own form processing script as a learning exercise and
want to know how to reload the page after processing the form to clear
the forms processor, to prevent the user from refreshing the page and
duplicating their submission.

Im a PHP guy normally and just simply type the following to reload the
page.

header('Location: index.php?message=on');

I have tried the following in PERL

But all it does is output to the screen.

print 'Location: http://www.mydomain.com/cgi-bin/myform.cgi';


This should work, if it is displaying in the browser then you have already printed a header usually a Content-type: text/html... You should not have both...


http://danconia.org


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to