Forums
This topic is locked
image field overwritten by update record page
Posted 20 Dec 2005 00:57:27
1
has voted
20 Dec 2005 00:57:27 Richard Aspden posted:
Hi,I have been using PHP upload on my pages and it work great. There is just one problem. If I edit a record using the Update Record behaviour in Dreamweaver the image path and filename in the database is always overwritten. I would like the user to be able to change the image through this form, but if they don't wish to then the form will submit whatever value is in the image upload field - which in this case will be blank because unlike normal text fields it doesn't seem to assign the original value from the database to this field.
Therefore, I need one of two things - either to find a way to bind the original value to the image upload field so that if it is left alone it just resubmits the original value, or to add a conditional statement whereby the field is only updated if the image upload field contains a value.
Can someone help me out with this task. Many thanks.