From: "lee" <l...@yagibdah.de>
Hi,
how can I make it so that my cgi program displays information on a web
page it sends to a user's web browser /and/ then makes the browser's
download dialog-box come up to let the user download a file?
It seems that making the web browser wanting to download a file is only
possible by sending appropriate page headers. Since those have already
been sent to display the text on the web page, I can't seem to make the
browser download the file automatically.
--
Hi,
Just print the page in the normal way and add a meta element similar with
the one below in the <header> section of that page:
<meta http-equiv="refresh" content="0; url=http://site.com/file.zip" />
After 0 seconds it will start the file download. If you want the page to
display for a few seconds and only after that to start the file download,
specify a bigger number of seconds.
--Octavian
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/