I user (anyone able to veiw the page) looking at the web page
can upload five pictures from their pc to my database located on a
server.
These five pictures can be anything from their pc - so I don't think a
drop-down box is right here.
I collect the five pictures using a form in HTML which has five input
boxes
which names labelled
pix1, pix2, pix3, pix4 and pix5. The one for pix5 is shown below but
the
other input boxes are the same format.
of course I can let them upload the 5 pictures and then they can check
that
the pictures
are ok - but I thought it would be nice for them to see the images that
they
have selected before they send them - ie before the "submit" button on
the
form is pressed.
so I want to do this bit client-side, before the form is sent back to
the
server.
if js can use an id and I can then use that in <input> box then that
sounds
good -
but I really don't know how to do that ?
in here :
<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>
do I replace pix5 in the name with some kind of js string/variable ?
sorry for being a bit naive - but it seems that I should be able to do
something like this ?
Can you offer any more on this ?
Many thanks.