Does anybody know how to use this HTML command??
<td><input type="file" name="fileImg" size=60 value=""></td>
like a Browse button appears, and i want to put a .GIF file that the user select in an image <IMG src=....>.
Printable View
Does anybody know how to use this HTML command??
<td><input type="file" name="fileImg" size=60 value=""></td>
like a Browse button appears, and i want to put a .GIF file that the user select in an image <IMG src=....>.
I'm pretty sure that the file list box will show the files available at the client's end, you know that right? Well if you could find a suitable event for the file list box, like onSelect or something along those lines (I'm not sure what its events are) then you could use JavaScript or VBScript to change the image's href property to the value of the file list box (which I assume will be the file name including path that the user selects).
I've never actually used a file list box myself, but I think that's how they work. Hope it helps some, good luck :)