Possible Duplicate:
Preview an image before it is uploaded
Assume that I have some elements like these:
<div id="tmp_image">
<!-- I wanna show image here -->
</div>
<input name="image" type="file">
All I want is : when I select a picture from the open dialog ,the image will be appearred in the "tmp_image" div (but only real uploaded when I submit the form).
How could I do that?