Copy this code and paste it in your HTML
<?php
//Set this to the base of where files
//can be downloaded from for security measures.
$basedir = "D:/wwwroot/";
if(!$_GET['file']) {
print "Sorry that file does not exist";
}
print "Sorry that file does not exist";
}
else {
header("Content-Type: octet/stream");
header("Content-Disposition: attachment; filename=\"".$_GET['file']."\"");
$fp = fopen($basedir.$_GET['file'], "r");
}
?>