www.webdeveloper.com
Results 1 to 4 of 4

Thread: combo/list box questions

  1. #1
    Join Date
    Jan 2004
    Posts
    377

    combo/list box questions

    Never though i would have so much touble figuring this out but I cannot seem to find what I am looking for.

    I need to create a list box type input that allows the user to select more 1 or more items at the same time. The amount of information that will be eneted into each box will change depending on what the database loads. Does anybody have a good howto on how to accomplish this and how to handle submission.

    so the page would look something like this
    Code:
    field1      choice1
                choice2
                choice3
                etc
    the idea is that the choices will be linked to field 1 and the user my choose a single value or all of them or a few of them.

    Can this be done and does anybody understand what I am trying to do.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    Press 'Shift' or 'Ctrl' for multiple selection
    <select name="select1" multiple="multiple" >
    <option value="1">choice1</option>
    <option value="2">choice2</option>
    <option value="3">choice3</option>
    </select>
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Jan 2004
    Posts
    377
    ok that works fine but how do i handle server side? If the user chooses 2 values and they both have the same name, how do i access each piece of information?

  4. #4
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles