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
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
Comment