fohanlon Posted June 22, 2006 Share Posted June 22, 2006 Hi GuysAgain I need some help. I have 4 input file field set to name "photos[]"I also have other field on the form and before submission I use php to check for errors etc.What I would like to be able to do is keep/display the full path the user would have chosen using the browse buttons if there are errors caused by other field entries on the form. Basically to save the user having to browse to the iamge again.Can this be done?I understand the file name is got using $_FILES['photos']['name'][0] etc but waht would get the path so that I could do somethig like this:<input name="photos[]" type="file" class="formitems" id="photos[]" size="50" value="<?php echo // the full local path as entered by the uuser using the browse button before form submission ?>">Many thanks,Fergal. Quote Link to comment https://forums.phpfreaks.com/topic/12634-file-upload-values-after-validation/ Share on other sites More sharing options...
zq29 Posted June 22, 2006 Share Posted June 22, 2006 I don't think the file input type supports a value attribute unfortunately... Quote Link to comment https://forums.phpfreaks.com/topic/12634-file-upload-values-after-validation/#findComment-48460 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.