Hi,
I am trying to display image in the following form and its not showing the photo :
[code]
<form action=”” method=”post”>
Select Employee name for photo update :<select name=empid>$options</select><br>
Enter full path with photo name :<input name=”path” value=”$upload_dir/$filename”><br>
<IMG SRC=”$upload_dir/$filename” WIDTH =”350″ HEIGHT=”500″ ALIGN=”Right” BORDER =”10″ BORDERCOLOR=”#333″><br>
<input type=”submit” class=”tsc_c3b_large tsc_button tsc_c3b_blue tsc_c3b_input” name=”go” value=”UPDATE” />
</form>
Here is the html source of the form :
[code]
Showing full path with photo name :<input name=”path” value=”/var/www/html/tmp/steven.jpg” readonly><br>
<IMG SRC=”/var/www/html/tmp/steven.jpg” WIDTH =”350″ HEIGHT=”500″ ALIGN=”Right” BORDER =”10″ BORDERCOLOR=”#333″><br>
<input type=”submit” class=”tsc_c3b_large tsc_button tsc_c3b_blue tsc_c3b_input” name=”go” value=”UPDATE” />
if I copy /var/www/html/tmp/steven.jpg in my browser the image shows up fine and even with that path the update of the photo to the database goes through fine.
I gladly appreciate any help as I really don’t have a clue why this is happening.
Many thanks!
Terry