View Full Version : Automatic Download?

12-06-2002, 01:53 AM
When the user loads the html page I want it to automatically start a download of a file. So what I did was this:

<meta http-equiv="Refresh" content="1; URL=homedir/file.mrc">

Instead, it displays the file, and it looks real messy because it isn't strictly text. How do I get it to automatically download when the page loads? Is there anyway of doing it using javascript, php, cgi, etc.?


12-06-2002, 02:37 AM
just a warning this will chase people from your site... If I go to a site and it tries to download something onload... I'm off like a prom dress!

12-06-2002, 03:04 AM
This is what my users want. I need the download to start automatically. How?

12-06-2002, 05:16 AM
the browser just recognizes the extension as a text file it can open and read itself, in order to make the file download you will either have to rename the extension, and have them change it later or zip up the file first, and offer that to download.