grumpy Posted October 29, 2007 Share Posted October 29, 2007 I have a file-uploading form to uploads a .jpg file and stores its name in a table in my db as co_bannerfile. I'm trying to now write an update form so the user can update their .jpg file. I've successfully written a query to retrieve the stored file's name. How can I display the stored file's name so the user can see its name within the input TYPE="file" field and then decide to update it or not? The following doesn't display the stored file name. What do I have wrong? Thanks for your help. print "\n<br><INPUT NAME=\"the_file\" TYPE=\"file\" SIZE=\"35\" VALUE=\"" . $co_bannerfile . "\">"; Link to comment https://forums.phpfreaks.com/topic/75261-solved-show-stored-value-for-form-field-typefile/ Share on other sites More sharing options...
trq Posted October 29, 2007 Share Posted October 29, 2007 You cannot use the value attribute with the type file. You will simply need to display the data some other way. Link to comment https://forums.phpfreaks.com/topic/75261-solved-show-stored-value-for-form-field-typefile/#findComment-380665 Share on other sites More sharing options...
grumpy Posted October 29, 2007 Author Share Posted October 29, 2007 Thanks. I was afraid of that! Link to comment https://forums.phpfreaks.com/topic/75261-solved-show-stored-value-for-form-field-typefile/#findComment-380666 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.