angriest society
Hi there,
Thanks for the help so far but after adding the correct code in the default file i re-tested and got the same result as before so i had a go at the debug as mentioned in the thread suggested and when i clicked update it didn't recognise the file.
The page had the following message.
Not Found
The requested URL /Lat/Admin/WA_DFP_AllUploadsDebug() was not found on this server.
Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2 Server at localhost Port 80
Have i done the hidden form field correctly.
My code for the form elements looks like this.
<th class="WADADataTableHeader">Thumb1:</th>
<td class="WADADataTableCell"><input type="hidden" name="ItemThumb1" id="ItemThumb1" value="<?php echo(str_replace('"', '"', $row_WADAitems['ItemThumb1'])); ?>" size="25" />
<label for="ItemThumb1"></label>
<input type="file" name="ItemThumb1" id="ItemThumb1" />
</tr>
<tr>
<th class="WADADataTableHeader">Thumb2:</th>
<td class="WADADataTableCell"><input type="hidden" name="ItemThumb2" id="ItemThumb2" value="<?php echo(str_replace('"', '"', $row_WADAitems['ItemThumb2'])); ?>" size="25" />
<label for="ItemThumb2"></label>
<input type="file" name="ItemThumb2" id="ItemThumb2" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">Thumb3:</th>
<td class="WADADataTableCell"><input type="hidden" name="ItemThumb3" id="ItemThumb3" value="<?php echo(str_replace('"', '"', $row_WADAitems['ItemThumb3'])); ?>" size="25" />
<label for="ItemThumb3"></label>
<input type="file" name="ItemThumb3" id="ItemThumb3" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">Thumb4:</th>
<td class="WADADataTableCell"><input type="hidden" name="ItemThumb4" id="ItemThumb4" value="<?php echo(str_replace('"', '"', $row_WADAitems['ItemThumb4'])); ?>" size="25" />
<label for="ItemThumb4"></label>
<input type="file" name="ItemThumb4" id="ItemThumb4" /></td>
</tr>
</table>
<div class="WADAButtonRow">
<table class="WADADataNavButtons" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="WADADataNavButtonCell" nowrap="nowrap"><input type="image" name="Update" id="Update" value="Update" alt="Update" src="../WA_DataAssist/images/Poppy/Elemental_update.gif" /></td>
<td class="WADADataNavButtonCell" nowrap="nowrap"><a href="items_Results.php" title="Cancel"><img border="0" name="Cancel" id="Cancel" alt="Cancel" src="../WA_DataAssist/images/Poppy/Elemental_cancel.gif" /></a></td>
</tr>
</table>
<input name="WADAUpdateRecordID" type="hidden" id="WADAUpdateRecordID" value="<?php echo(rawurlencode($row_WADAitems['ItemID'])); ?>" />
</div>
</form>
<?php } // Show if recordset not empty ?>
<?php if ($totalRows_WADAitems == 0) { // Show if recordset empty ?>
<div class="WADANoResults">
<div class="WADANoResultsMessage">No record found.</div>
</div>
<?php } // Show if recordset empty ?>
</div>
</div>
</div>
<div id="footer"><a href="../contactus.php">Contact us</a> | <a href="../sitemap.php">Sitemap</a> | <a href="../termsofuse.php">Terms of Use</a> | <a href="../privacypolicy.php">Privacy policy</a> | <a href="../shoppingcart.php">Shopping cart</a> | <a href="../checkout.php">Checkout</a> | <a href="../registration.php">Registration</a> | <a href="../Profile_Search.php">Search</a> | <a href="../visitors_LogOut.php">Logout</a></div>
</div>
</body>
</html>
<?php
mysql_free_result($WADAitems);
?>
<?php
mysql_free_result($WADADynListcountries);
?>