Hi Brian,
Thanks so much for your help. I have a couple of questions, please forgive my ignorance.
to define I have used this code directly before my opening HTML code. is that correct?
<?php
//define incnumber variable
$incnumber = 0
?>
This is the bit I am having trouble with, I am not sure where this should be.
Below is my repeating region, is that looking ok?
<?php do { ?>
<tr class="<?php echo $WARRT_AltClass1->getClass(true); ?>">
<td class="WADAResultsTableCell"><?php echo $row_WADAloadingDock['submitTime']; ?></td>
<td class="WADAResultsTableCell"><?php echo($row_WADAloadingDock['fileName']); ?></td>
<td width="90" align="right" class="WADAResultsTableCell">
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="">
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResul t1");
if(isset($_POST["'download'.$incnumber"])){
WA_DFP_DownloadFile("WA_DownloadResult1", "uploads", "".$row_WADAloadingDock['fileName'] ."", "[FileName]", false, false, false, "", "", "", "");
}
?>
<input type="submit" name="download<?php echo $incnumber; ?>" id="download<?php echo $incnumber; ?>" value="Download" />
</form>
</td>
</tr>
<?php } while ($row_WADAloadingDock = mysql_fetch_assoc($WADAloadingDock)); ?>
Once again thanks!
Pete