Hey All,
I have code at present which allows me to select images on a webpage.
<img name="img5">
<img name="img4">
<img name="img3">
<script>
document.images['img5'].src = "5.jpg"
document.images['img4'].src = "4.jpg"
document.images['img3'].src = "3.jpg"
I have a simple HTML form which has checkboxes next to images. What I want to do is select one or more images press submit and on the next screen show the images which had checkboxes selected.
I can pass the values of the images across to the page via post but how would I declare the id into img name as the above example is hard coded?
Thanks
Gary