Forum Moderators: coopster

Message Too Old, No Replies

Select multiple values without using options

         

vanik

9:57 am on Aug 5, 2008 (gmt 0)

10+ Year Member



Hi All,

How can i select multiple values in a form without using options.I want to select more than one image from a table and submit those selected values as a request to the next page.I don't want to use the select box for this.
Can u please help me about this?

Thanks in advance

mikeyb

11:00 am on Aug 5, 2008 (gmt 0)

10+ Year Member



How about using checkboxes?

vanik

11:14 am on Aug 5, 2008 (gmt 0)

10+ Year Member



I want to select by click on the thumbnail of the image.So,i dont want the check boxes.And i want to upload the folders and subfolders and the files also.

mrscruff

11:32 am on Aug 5, 2008 (gmt 0)

10+ Year Member



Use check boxes, and add the thumbnail image inside the label tag.

vanik

11:36 am on Aug 5, 2008 (gmt 0)

10+ Year Member



My client don't want the selecting by using check boxes.He want to do it only by selecting the images directly click on them.Any possible solution please help me?

mrscruff

11:49 am on Aug 5, 2008 (gmt 0)

10+ Year Member



Ok, why not link the label to the checkbox, set the style on <input> to position it off screen with something like 'position:absolute; left:-1000px;'

Then use javascript to add a border around the image or some thing to let the user know it's selected.

vanik

11:52 am on Aug 5, 2008 (gmt 0)

10+ Year Member



can u please send me how we write the code by using lable and checkbox. I dont know how to write?

mrscruff

12:04 pm on Aug 5, 2008 (gmt 0)

10+ Year Member



<div>
<input id="id1" name="pic1" type="checkbox" style="position:absolute; left:-1000px" />
<label for="id1"><img src="" /></label>
</div>

Label uses id for it's reference, and the $_POST will use name.