SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: select item tag

Hybrid View

  1. #1
    SitePoint Evangelist
    Join Date
    Jul 2005
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    select item tag

    hi, i have a list form object on my page:

    <select name="item" size="5" multiple="multiple" id="item">
    <option>something here</option>
    <option>something here</option>
    <option>something here</option>
    <option>something here</option>
    <option>something here</option>
    <option>something here</option>
    <option>something here</option>
    <option>something here</option>
    <option>something here</option>
    </select>

    but i cant find anywhere about how to get at these elements when the forms been submitted. for example, if a few of the items have been select, it returns a commar delineated line, but how can i get at, say the 3rd item selected or find out how many items were selected?
    thanks

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,220
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    this will depend on the server-side language you're using

    let me know which it is, and i can move the thread to the appropriate forum
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Evangelist
    Join Date
    Jul 2005
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im using asp (jscript).
    thanks

  4. #4
    SitePoint Evangelist
    Join Date
    Jul 2005
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, im just going to chuck the result in an array and split up the values into array elements. if anyone knows a better way feel free to let me know.
    cheers


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
  •