multiple image upload with DFP
I've scoured the forum and can't find an answer to this, so here goes:
MacBook Pro 10.5.8 (2.26 Ghz Intel Core 2 Duo), DMW 8.0.2, Digital File Pro 1.1.3.
I've put together a simple admin page where I'd like to be able to upload up to 10 images to an images folder. I've tried various different versions of this page, but whatever happens, only the first image gets uploaded. Code for the page is below and I'd appreciate any assistance in pointing out where I might be going wrong.
Jeff
--------------------------------------
<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Submit"])){
WA_DFP_UploadFile("WA_UploadResult1", "file", "", "craneimages/", "[FileName]", "2", "[FileName]_[Increment]", "1024", "false", "0", "0");
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
-->
</style>
</head>
<body>
<table width="400">
<tr>
<td colspan="2"><span class="style3">Manage all listings: </span></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><span class="style3">Create a new listing </span></td>
<td><span class="style3"><a href="plantList_Insert.php">click here</a> </span></td>
</tr>
<tr>
<td><span class="style3">Delete an existing listing </span></td>
<td><span class="style3"><a href="plantList_Delete.php">click here</a> </span></td>
</tr>
<tr>
<td><span class="style3">Update an existing listing </span></td>
<td><span class="style3"><a href="plantList_Update.php">click here </a></span></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="style3">Upload an image: </td>
<td> </td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><form id="form1" name="form1" enctype="multipart/form-data" method="post" action="">
<input type="file" name="file" />
<br />
<input type="file" name="file2" />
<br />
<input type="file" name="file3" />
<br />
<input type="file" name="file4" />
<br />
<input type="file" name="file5" />
<br />
<input type="file" name="file6" />
<br />
<input type="file" name="file7" />
<br />
<input type="file" name="file8" />
<br />
<input type="file" name="file9" />
<br />
<input type="file" name="file10" />
<br />
<input type="submit" name="Submit" value="Submit" />
</form>
</td>
</tr>
</table>
</body>
</html>