Below is the code which grabs file names to download and passes those names into the url.
<?php if($_POST[‘file1’]){
$filename=$_POST[‘file1’];
echo ‘<a href=”mydownload_multi.php?filename=’.$filename.'”><b>Download file!</b></a>’;
}
else if($_POST[‘file2’]){
$filename=$_POST[‘file2’];
echo ‘<a href=”mydownload_multi.php?filename=’.$filename.'”><b>Download file!</b></a>’;
}
?>
The code below is the actual file which makes it possible to download the selected download.
© 2018 ALL Rights Reserved | Sitemap
Vancouver | North Vancouver | Burnaby | Richmond | Coquitlam | Port Coquitlam | Surrey | Langley | Maple Ridge | Mission | Abbotsford | Kamloops | Kelowna | Victoria | Squamish | Whistler | Pemberton