Sorry, perhaps I wasn't clear. The only issue I am having is with the photo upload field on an "update profile" page that is part of a registration system. All other fields fill and update as they should. But the photo field is not required, so it may be left empty. If someone has already uploaded a file and does not want to upload a new one, the original filename in the database gets overwritten (empty) when the update form is submitted. My question is, how do I avoid this?
Right now, this is the code for the file upload field:
<input class="noformstyle" type="file" name="UserPhoto" id="UserPhoto" size="30" value="<?php echo $row_WAATKusers['UserPhoto'] ?> ">
Thanks.