I have some files (doc, pdf, exe) that I want the visitors of my web page to be able to download. How can I accomplish that?
I have a folder for all webpages called “MyDomainWeb” and one folder called “downloads”. These two folders are on the same hierarchical level.
In the download folder I have three files. File1.doc, File2.pdf, File3.exe.
What code would make it possible for the user to download the file that is clicked?
One of my web pages look like this:
[CODE]<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>
<body>
Click on the file that you want to download<br>
<p>File1.doc</p>
<p>File2.pdf</p>
<p>File3.exe</p>
<p> </p>
</body>
</html>
Any ideas on how to solve this little problem?