SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Dec 2000
    Location
    Poland
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a folowing form:
    <form name="form">
    ...
    <select name="game" multiple>
    <option name="game1" value="1">
    <option name="game2" value="2">
    ...
    </select>
    ...
    </form>

    When I select two or more options and submit the form I want to read the selection. The query string (after ?) contains multiple different "game" values.

    In $HTTP_GET_VARS there is a correct number of pairs with a key "game" but all of them have the same value (the last value visible in the query string for the "game").

    Is there any way to get all "game" values ?

    Chris

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change
    <select name="game" multiple>

    to

    <select name="game[]" multiple>
    <option value="1">1
    <option value="2">2
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    SitePoint Member
    Join Date
    Dec 2000
    Location
    Poland
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much

    Chris


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
  •