download button does not trigger download
i have created download button as specified in user manual.
but when I click the download button, the file download does not get triggered.
only code generated by digital file pro is below..
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if(isset($_POST["download"])){
WA_DFP_DownloadFile("WA_DownloadResult1", "/weekly_pdf/", "".$_SESSION['MM_Username'] .".pdf ", "".$_SESSION['MM_Username'] .".pdf ", false, false, false, "", "", "", "");
}
?>
and the form that has download button looks below..
<form name="form1" method="post" action="">
<label>
<input type="submit" name="download" id="download" value="Download">
</label>
</form>
I THINK I NEED TO ADD SOMETHING IN THE DOWNLOAD BUTTON THAT WILL TRIGGER DOWNLOAD process.. but it doesn't say how I should update the code in the user manual.
Can anybody tell me how I should update above codes in order to trigger download process??