Retrieving Contents of Select List on Form Submit

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

    Retrieving Contents of Select List on Form Submit


    On an HTML form, I have a select list that is fed dynamically with
    detail records when the master record is displayed on the form.

    There is also a second lookup list, and want to allow the user to
    dynamically select from this list and add to the first list. I also
    want the user to be able to dynamically remove from and reorder the
    first list. I think I can do all of this with JavaScript.

    The question I have, is how can I retrieve the contents of the first
    list when the user submits the form? I need to get it back into a php
    array so I can update and add the proper database records.

    --Bruce

  • thumb_42@yahoo.com

    #2
    Re: Retrieving Contents of Select List on Form Submit

    Bruce <brucev2@hotmai l.com> wrote:[color=blue]
    >
    > On an HTML form, I have a select list that is fed dynamically with
    > detail records when the master record is displayed on the form.
    >
    > There is also a second lookup list, and want to allow the user to
    > dynamically select from this list and add to the first list. I also
    > want the user to be able to dynamically remove from and reorder the
    > first list. I think I can do all of this with JavaScript.
    >
    > The question I have, is how can I retrieve the contents of the first
    > list when the user submits the form? I need to get it back into a php
    > array so I can update and add the proper database records.
    >
    > --Bruce[/color]

    As far as I know, (and maybe, HOPEFULLY :-)) someone will correct me,
    but the way to do that in PHP is to use NAME="VARNAME[]" in your HTML.
    (personally I don't really care for that approach, but aside from
    parsing the urlencoded data manually, I don't know of any other way)

    Jamie

    Comment

    Working...