change the forms action to:
<form id="downloadForm" name="downloadForm" method="post" action="download.php?ebook=<?php echo(isset($_GET['ebook']):$_GET['ebook']:""); ?>">
so that the ebook querystring variable being used by the rsebook recordset has a value when the form submits.