Well it's hard for me to know how you like it. You need to get hold of $download. If you like the info to stick event if user jumps between pages on you site, you could do this:
if (!array_key_exists("d",$_SESSION)){ //set a session[d] to 0 if theres no value.
$_SESSION['d'] = 0;
}
elseif (array_key_exists("d",$_GET)){ //get session[d] if it exists
$_SESSION['d'] = $_GET['d'];
}
Somewhere you'll need a link.
echo "<a href=\"?$d=1\" >name of downlad</a>"; // the \ is to jump over ".
And some where you like to display it.
$d = $_SESSION['d']; //to get the session value on $d
if ($d == 1) {
echo "download info";}