how to display a chosen image if an user forgets other information in a form.
For regular input fields I use
<input name="checkEmail" type="text" value="<?php echo $_POST['checkEmail'];?>" maxlength="255" />
But for an image upload this doesn't work
<input type="file" name="photo" id="file" value="<?php echo $_POST['photo'];?>"/>
How do I set input field photo to the chosen file path???