I have a form that uploads images and changes the name. Everything was working fine until I added
code to pull the image from the DB and display it. Now when I click on upload it will not pass the image and
its info.
This is what I had and it was working fine.
<div id='imageBottom'>
<span class='image'><a href='uploads/$photo_4'><img src='uploads/$photo_4' width='75' height='75' border='1'></a></span>
<span class='action'>
<input type='file' name='photo_4' class='zip'><br><br>
<input type='checkbox'>Select to Delete image
</span>
I added some code to echo an image if one is available and now it doesn't work
<div id='imageBottom'>
<span class='image'>";
if (empty($photo_1))
{
echo " <img src='uploads/noPhoto.jpg' width='75' height='75' class='zip'> ";
}
else
{
echo "<a href='uploads/$photo_1' ><img src='uploads/$photo_1' width='75' height='75' class='zip'></a> ";
}
echo "
</span>
<span class='action'>
<input type='file' name='photo_1' class='zip'><br><br>
<input type='checkbox'>Select to Delete image
</span>