Hi,
I have a form where a user can upload an image, and this gets stored in the database as a filepath successfully. I just want to be able to display this image when I view the form again. Is this possible? I've searched the forums but couldn't figure out how to use headers or how to call an image tag correctly.
This is some of my code so far...
form.php:
<FORM enctype="multipart/form-data" action="sales_commit.php?id=<?php echo $_GET['id']?>&aid=<?php echo $agent_id?>" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="30000">
.....
<td>Image:<?php echo $image?><img src='images/"<?php echo $image;?>"'></td>
<td><INPUT type="file" NAME="image"></td>
processform.php:
I have no problems whatsoever uploading the file into my server.
What can I change in the form.php file?
Any help would really be appreciated, been trying to resolve this for a few days!
Thank you.