For regular input fields I use <input name="checkEmail" type="text" value="<?php echo $_POST['checkEmail'];?>" maxlength="255" /> Code (markup): But for an image upload this doesn't work <input type="file" name="photo" id="file" value="<?php echo $_POST['photo'];?>"/> Code (markup): How do I set input field photo to the chosen file path???
That will never work. I suggest you research how file uploading is actually carried out. For one thing, the client-side file path is never sent.
hi 123GoToAndPlay, as what penagate said it wont work. As a suggestion try to look at this resource: http://www.blazonry.com/scripting/upload-size.php let us know your progress , thanks, gigamike
<input name="checkEmail" type="text" value="<?php echo $_POST['checkEmail'];?>" Code (markup): it's wrong - you need to analize and convert you post variabled. Some symbols will be quoted and you will got an error. For image create tmp file and make a link to it, and keep in session about downloaded file also.