Jump to content

[SOLVED] Show stored value for form field type=file


grumpy

Recommended Posts

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 . "\">";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.