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. Quote Link to comment 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. Quote Link to comment 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.... Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.