By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,869 Members | 1,647 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,869 IT Pros & Developers. It's quick & easy.

processing form with multiple selects

P: n/a

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

<select name='food'>
<OPTION VALUE='pizza'>tuna
<OPTION VALUE='pizza'>ansjovis
<OPTION VALUE='pizza'>tomato

<select name='food'>
<OPTION VALUE='salad'>greek
<OPTION VALUE='salad'>thousandislands
<OPTION VALUE='salad'>italian

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?


Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
On Fri, 15 Aug 2003 16:47:42 -0700, Marc wrote:

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


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 |

Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.