WebEducate
WebEducate

Reputation: 79

after image upload in form want to show a thumbnail of image

simple question this time around...

So I have this code I managed to find and it works well for me. But I would like to add to it a thumbnail display of the image upon submission. Could anyone help me to figure out the code and how it will fit in to display a thumbnail? Please and thanks everyone.

Here is the jsfiddle for it.

HTML:

<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post"    enctype="multipart/form-data">

File: <input type="file" name="file" style="width: 250px;"><br>
<input type="submit" name="submit" value="Upload File">
</form>

Upvotes: 0

Views: 242

Answers (1)

131
131

Reputation: 1385

Just make and <img> tag with attribute src="$link" where $link is the link to the image.

Upvotes: 2

Related Questions