File Input Field -> Remember the filepath on reload??
Posted: Thu Sep 28, 2006 7:24 pm
Hey guys... just like when you have regular text field form elements that have the ability to "remember" what you put in them on reload (just in case you forgot to fill something out and didn't want to lose all your other input data) like below:
..How do you do the same with a file input field for attaching files? (ie. <input type="file" name="upload" /> )
Everything I have tried doesn't seem to be reloading that file attachment path from the user's computer in those file field elements on a page reload... so the user has to "re-attach" those files one by one again. Any idea how this can be done? Thanks a bunch.
Code: Select all
<input type="text" name="lastName" value="<?php
if (isset($_POST['lastName'])) echo $_POST['lastName']; ?>" />Everything I have tried doesn't seem to be reloading that file attachment path from the user's computer in those file field elements on a page reload... so the user has to "re-attach" those files one by one again. Any idea how this can be done? Thanks a bunch.