Hello
I have a site that pulls information from a Database and one of the links I want to have the user download a file once they click on the link. I can't seem to pass the file name to the download php file.
the link for the files is <a href='download_file.php?fname=document_name.pdf'>
in the download_file.php file I have the following code, but it is not picking up the variable:
$fname = $_GET['fname'];
header('Content-disposition: attachment; filename={$fname}');
header('Content-type: application/pdf');
readfile('{$fname}');


