Hi SOJO, all,
I also need to get this working and have had no luck. Would really appreciate advice on how to get it to work! I have tried every permutation of S_POST syntax under the sun to no avail - the page displays fine but there's simply no file downloading. I'va also tried this using the unique record id as displayed on the same line (as per the other post on this subject with altered syntax that seems correct too - again, page displays fine but no file downloads). Would really appreciated some advice - many thanks. Ann
For the inc example, code lines are:
<?php
//define incnumber variable
$incnumber=0
?>
// HTML begins here
<?php do { ?>
<?php ++$incnumber; ?>
// repeating table start here
<td class="WADAResultsEntry"><form id="form1" method="post" action="">
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if(isset($_POST['download.$incnumber'])){
WA_DFP_DownloadFile("WA_DownloadResult1", "imageresponse/", "".$row_WADAorders['file_response'] ."", "[FileName]", 1, $database_users, $users, "orders", "idorder", "".$row_WADAorders['idorder'] ."", "download_counter");
}
?>
<input type="submit" name="download<?php echo $incnumber; ?>" id="download<?php echo $incnumber; ?>" value="Download" />
</form
_________________________________________________________________________
and for the example using unique record id, my code is just
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if(isset($_POST["'download'.{$row_WADAorders['idorder']}"])){
WA_DFP_DownloadFile("WA_DownloadResult1", "imageresponse/", "".$row_WADAorders['file_response'] ."", "[FileName]", 1, $database_users, $users, "orders", "idorder", "".$row_WADAorders['idorder'] ."", "download_counter");
}
?>
<input type="submit" name="download<?php echo $row_WADAorders['idorder']; ?>" id="download<?php echo $row_WADAorders['idorder']; ?>"
value="Download" />
//this code is also with the repeating recordset region