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>
In reply to Re^3: Perl CGI download file and redirect
by Corion
in thread Perl CGI download file and redirect
by Yaerox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |