Getting values from ListBox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Srihari

    Getting values from ListBox

    Hi
    Iam using two list boxes and able to sending values from one to another.
    When submitting the form iam not getting the values those moved accross.

    Can any one help me on this.

  • kaeli

    #2
    Re: Getting values from ListBox

    In article
    <307c37e3556308 1625bad83592b18 8ca@localhost.t alkaboutprogram ming.com>,
    sriharikallam@y ahoo.com enlightened us with...[color=blue]
    > Hi
    > Iam using two list boxes and able to sending values from one to another.
    > When submitting the form iam not getting the values those moved accross.
    >
    > Can any one help me on this.
    >
    >[/color]

    There is no such element as a list box. So, I assume you mean a select form
    element.

    Without seeing testable code, nope, can't help you too much. Too many things
    to check.
    However, do make sure the elements have names, aren't disabled, and your form
    doesn't have an input type=file anywhere.
    Other than that, the problem could be on the client or on the server. To see
    if the problem is on the client, use GET and check that the values are indeed
    in the URL. If they are, the problem is with the server-side code grabbing
    the values (which is OT here). If not, post a URL with testable code.

    --
    --
    ~kaeli~
    Profanity: the single language in which all programmers are
    expert.



    Comment

    • Matt Kruse

      #3
      Re: Getting values from ListBox

      Srihari wrote:[color=blue]
      > Iam using two list boxes and able to sending values from one to
      > another. When submitting the form iam not getting the values those
      > moved accross.[/color]

      The options will only be sent if they are selected. Make sure all items
      moved are selected before submitting.

      Alternatively, use my small library which helps in this exact situation,
      moving items between select boxes. It keeps track of changes in a hidden
      field so you can easily get the values added, removed, etc.


      --
      Matt Kruse



      Comment

      Working...