SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist jazztie's Avatar
    Join Date
    Mar 2001
    Location
    the Netherlands
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    passing on multiple values from list/menu

    I have a problem with passing on values from a form.

    I have a select box:
    <select name='choice' size='5' multiple>
    <option value='1'>choice 1</option>
    <option value='2'>choice 2</option>
    <option value='3'>choice 3</option>
    <option value='4'>choice 4</option>
    <option value='5'>choice 5</option>
    </select>


    Now, I want to display some information on the next page (the one this form is submitted to), depending on which option or options is / are selected.
    How do I pass on multiple values?

    I know that you can pass on one value in variable choice. But I don't know how to pass on all the selected values. Is this possible?

    Please advise...

  2. #2
    SitePoint Wizard dominique's Avatar
    Join Date
    Dec 2000
    Location
    orbis terrarum
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the user holds down ctrl or shift and selects multiple entries won't it send them all automatically?

  3. #3
    SitePoint Evangelist jazztie's Avatar
    Join Date
    Mar 2001
    Location
    the Netherlands
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But how does the FORM send them?
    How can I fetch the values on the page where the values are submitted to?

    Is it an array if multiple values are selected?


Bookmarks

Posting Permissions

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