in reply to Re^2: Perl CGI download file and redirect
in thread Perl CGI download file and redirect
Oh, sorry - I glossed over that part. You need a separate URL for sending the download. There you send the download headers. You have the URL for the "thank you" HTML page. There, you display the "thank you" message and then redirect (using META tags or Javascript) to the download page:
<html> <head> <meta http-equiv="refresh" content="5; url=download.pl?filename=$p_fil +ename.pdf"> <body> <h1>Thank you!</h1> </body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl CGI download file and redirect
by Yaerox (Scribe) on Nov 17, 2014 at 14:46 UTC | |
by Corion (Patriarch) on Nov 17, 2014 at 14:50 UTC | |
by Yaerox (Scribe) on Nov 17, 2014 at 14:58 UTC | |
by Corion (Patriarch) on Nov 17, 2014 at 17:39 UTC | |
by Yaerox (Scribe) on Nov 20, 2014 at 07:21 UTC |