Results 1 to 2 of 2

Thread: pass two values from list box?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    1
    Hello All -

    I need to pass two values from a list box. I want to pass
    The ID AND the Value - or - pass the Value AND the actual selection itself.

    <option id="<%=(RsType.Fields.Item("TypHeader").Value)%>" value="<%=(RsType.Fields.Item("TypID").Value)%>"><%=(RsType.Fields.Item("TypHeader").Value)%></option>

    How can I do this?

    Thanks!

    James

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You can store them both in the Value separated by a character.. like say a pipe | Then your code that uses the values can separate them into two variables. The innertext will not be passed in the form.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

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



Click Here to Expand Forum to Full Width