Nice, costin_trifan ... but a couple of things make it work better like:
Code:
...
function PreviewImage(imageID,imgSrc)
{
imgId = document.getElementById(imageID);
imgId.src = imgSrc;
}
</script>
...
<input type="file" name="ImageUpload1" size="33" onblur="PreviewImage('PrevImage',this.value)" /><br>
<img id="PrevImage" />
(PreviewImage was both the name of the function and the ID of the IMG to hold the display, and some browsers have a hard time handling a FILE type form element in the manner you presented it. I used onblur instead of a link, because they'll see it without needing to do anything.)
And why does this work without uploading the file to the server? Well, before they submit the form, the user establishes a path to the file on their own system, and the preview function just grabs that file for local viewing ... no uploading required!
