processing form with multiple selects

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

    processing form with multiple selects

    Hello,

    I have a form with multiple selects (pullDown). All selects have the
    same name but each select has a different value. The user selects a
    value in each select. When he submits the form I want to put te values
    of the selects in a database so that the value of each select is added
    to a table and the option te user selected in that select in another
    table.

    e.g.
    <select name='food'>
    <OPTION VALUE='pizza'>t una
    <OPTION VALUE='pizza'>a nsjovis
    <OPTION VALUE='pizza'>t omato
    </select>

    <select name='food'>
    <OPTION VALUE='salad'>g reek
    <OPTION VALUE='salad'>t housandislands
    <OPTION VALUE='salad'>i talian
    </select>

    salad gets added to a table 'foods'
    'greek', thousandislands or italian (the user selection) gets selected
    to a table 'preferences'.

    I know how to access values in one select. How can I access values in
    different selects?

    thanks,

    Marc
  • Jeffrey Silverman

    #2
    Re: processing form with multiple selects

    On Fri, 15 Aug 2003 16:47:42 -0700, Marc wrote:

    <snip!>[color=blue]
    > Thanks for the explanation, it clears things up. The situation I have
    > is not about pizzas but photos. Maybe you can put me on the right
    > track.[/color]
    <snip!>

    Google on "php image gallery"

    No sense in reinventing the wheel, so to speak. There are literally dozens
    of freely-available web-and-php-based image gallery scripts.
    --
    Jeffrey D. Silverman | jeffrey AT jhu DOT edu
    Johns Hopkins University | Baltimore, MD
    Website | http://www.wse.jhu.edu/newtnotes/

    Comment

    Working...