How do I set up a download link?

vbimport

#1

I registered with a freebie webhost to transfer some files to online friends. How do I set up links so that when someone clicks on them, it asks them if they want to download the files?


#2

The popup you refer to happens automatically when you set up a proper link for a downloadable file. At least in IE it does for sure.

Some code for example:
<a href=“http://www.my_host_page.com/sub1/program.exe”>program.exe</a>


#3

exactly like linking to a new page :wink:


#4

When you send a link (either directly in an email, or through a small HTML page) and the other person clicks it, the browser will determine what to do with it, with some server-side input.

When, for example, you link to a JPG file, the browser will display it instead of asking whether the user wants to download the file. When you have a PHP file, the server must be configured correctly to handle such files. If the server does not know what to do with it, nor does your browser, your browser will ask what to do with it, view or download…you can then select the download option…

It is that simple…basically


#5

OK, I got it working :smiley:

Thanks for the help, all.