close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Problem of losing image with update

Thread began 2/03/2010 6:49 am by ant.knott394719 | Last modified 2/12/2010 12:52 pm by ant.knott394719 | 2906 views | 14 replies

ant.knott394719

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('"', '&quot;', $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('"', '&quot;', $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('"', '&quot;', $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('"', '&quot;', $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);
?>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...