Hi, I tried this code:
<?php
session_start();
$id=$_GET['fileid'];
if($id=="1")
{
$dwnld = "File1.zip";
}
else if($id=="2")
{
$dwnld = "File2.zip";
}
else if($id=="3")
{
$dwnld= "File3.zip";
}
if($id)
{
header("Content-type: application/download");
header("Content-disposition: filename=$dwnld");
readfile($dwnld);
}
?>
I want the user to download those files from a folder named Archives... Example:
Archives/File1.zip
or Archives/File2.zip
Please I want your help quickly... Thanks.