I’d like to create a PHP page which shows a message like
Your download will begin shortly.
If it does not start, please click here to restart the download
i.e., the same type of page that exists on major websites.
It will work like this:
<a href="download.php?file=abc.zip">Click here</a>
When the user clicks that link, he is led to download.php which shows him that message, and then offers the file for download.
How can I do this?
Thanks so much!
The link needs to do one of two things:
One way to get the browser to start the download “on its own” is to use a META REFRESH tag.
Another way is to use JavaScript, such as this (from Mozilla’s Firefox download page):