Download file using File Manipulation
I have a dynamic recordset from a recordset named rs_league_docs which displays a list of the league documents; I want the visitor to be able to click a league document name and have the actual .pdf downloaded. I have read through the File Manipulation and I am not understanding the process. I have copied and pasted the code; but also attached a screenshot and the actual .php page. (As always thank you for your assistance)
<table width="195" border="0" cellpadding="5">
<tbody>
<tr>
<td>
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if(($_SERVER["REQUEST_METHOD"] === "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)){
WA_DFP_DownloadFile("WA_DownloadResult1", "LGADocs/docs/", "".($rs_leagueDocs->getColumnVal("docname")) ."", "[FileName]", false, false, false, "", "", "", "");
}
?>
</td>
<td><h3><?php echo ($rs_leagueDocs->getColumnVal("docname")); ?></h3></td>
</tr>
</tbody>
</table>