i still have problems with - anyone any ideas ? ...
....
I am continuing to build my form which has some
pictures in it to upload.
What I would like to do is show the pictures before all the data and
the images are uploaded so that the operator can be sure that
the pix files are the correct ones.
I am thinking of using a button with
onClick=" ?? don't know "
- but the idea is to use<img src="the_pix_file_name" />
But how do I get the file name that was selected by the
browse button or typed into the pix input box before it is
uploaded to the server ?
Since the input is done client side. I guess there must be a way
of js knowing the file name and displaying it ?
Heres the code I have:
<form enctype ="multipart/form-data" action="upload.php" method="POST">
...there four other pictures plus a load of other inputs then...
...the 5th pix ...
<tr><td class = "cl_props_add_td3" >Pix 5: </td>
<td><input type="file" name="pix5" size="30"></td>
<td class = "cl_props_add_td3" style="text-align: right">Caption 5: </td>
<td><input type="TEXT" name="cap5" size="30" maxlength="50"></td>
</tr>
<br>
</table>
</div>
</div>
SOMEWHERE ABOUT HERE A BUTTON AND JAVASCRIPT ??
TO DISPLAY THE FIVE PICTURES
<div id='Props_add' style='position:absolute; left:630px; top:328px' >
<table summary="">
<tr><td><input type="submit" name="upload" value="Upload Data"></td></tr>
</table></div>
</form>
any ideas ?