File Download : Not Working
Followed instructions to add download file ability to recordset, setup form accordingly to cater for the dynamic entries, nothing happens???
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if($_SERVER["REQUEST_METHOD"] === "POST"){
WA_DFP_DownloadFile("WA_DownloadResult1", "downloads/", "922573410.pdf", "[FileName]", false, false, false, "", "", "", "");
}
?>
Dynamic Form
<form action="" method="post" enctype="multipart/form-data" name="downloadfileform_<?php echo($GetPageNews->getColumnVal("newsid")); ?>" id="downloadfileform_<?php echo($GetPageNews->getColumnVal("newsid")); ?>">
<input type="button" id="download" name="download" value="Download">
</form>
Since I don't get the dynamic stuff to work, created the above to download a file directly to test, nothing happens / triggers when you press the btn??