Downloads
Hi me again,
I have a download page on my website
Users can download application forms for the events that we hold.
I have 6 buttons which are connected to PDF files hosted on the server. I have used File Manipulation to upload files with great success but my downloads will not work.
I have followed the guides from http://www.webassist.com/tutorials/Apply-file-upload-or-download
and tried adhoc to see if I could get them to work.
the PHP code for one of the download is
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if(isset($_POST["heavyweight_button"]) || isset($_POST["heavyweight_button_x"])){
WA_DFP_DownloadFile("WA_DownloadResult1", "documents/", "2014heavyweightform.pdf", "Heavy_Weights.pdf", false, false, false, "", "", "", "");
}
?>
The files are in the documents folder
the button code is
<label>heavyweight form</label>
<input type="submit" name="heavyweight_button" id="heavyweight_button" value="download" >
Thanks in advance
Login is not required to download these forms
Andy