Page 1 of 1

how to get select menu options to REQUEST more than one

Posted: Fri Jun 15, 2007 12:28 pm
by revocause
Hi,
do you know how to get a select menu <option> to REQUEST or query MORE THAN ONE variable/value from a database?

so if example was:

Select Menu:
option1 = widget A
option2 = widget B
option3 = Widget C

IF a user selected "widget A" for pretend, and if widget A had :
1. weight
2. baseprice
3. quantity

all 3 of those within that one option select. what is the proper syntax for doing that?
I tried DreamWeaver but they give you the single 'value' & 'label' crap.

I've heard that more than one value can be assigned by putting a comma between them in .js , but i dont know the syntax of that for php.

Thank you

Posted: Fri Jun 15, 2007 9:58 pm
by afbase

Code: Select all

SELECT weight,baseprice,quantity FROM some_table WHERE widget = 'widget A';

i dunno, elaborate