horseatingweeds Posted August 31, 2007 Share Posted August 31, 2007 I would like to keep the file path in a file input after validation and if the user uses and edit button to go back to the form. This is easy enough with text inputs with an echo $_POST['']; but how is this done with a file input. It returns nothing from post. Link to comment https://forums.phpfreaks.com/topic/67378-return-the-file-path-from-a-file-input/ Share on other sites More sharing options...
Jessica Posted August 31, 2007 Share Posted August 31, 2007 I don't believe you can fill in a file field at all. Link to comment https://forums.phpfreaks.com/topic/67378-return-the-file-path-from-a-file-input/#findComment-338133 Share on other sites More sharing options...
horseatingweeds Posted August 31, 2007 Author Share Posted August 31, 2007 Isn't there some way using the $_FILES array or something? There must be some way to return the file path or temp name or whatever.... Link to comment https://forums.phpfreaks.com/topic/67378-return-the-file-path-from-a-file-input/#findComment-338149 Share on other sites More sharing options...
Jessica Posted August 31, 2007 Share Posted August 31, 2007 What? I thought you were trying to fill in the field in the form - so if they "edit" the form it will be pre-filled in. AFAIK the value="" field does not work on file inputs. So you can't keep the filename in the field. You could print it to the screen, but not in the field. Link to comment https://forums.phpfreaks.com/topic/67378-return-the-file-path-from-a-file-input/#findComment-338150 Share on other sites More sharing options...
horseatingweeds Posted August 31, 2007 Author Share Posted August 31, 2007 I see, no value at all. Hmmm Link to comment https://forums.phpfreaks.com/topic/67378-return-the-file-path-from-a-file-input/#findComment-338153 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.