how to get select menu options to REQUEST more than one

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
revocause
Forum Commoner
Posts: 94
Joined: Tue May 29, 2007 9:37 am

how to get select menu options to REQUEST more than one

Post 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
afbase
Forum Contributor
Posts: 113
Joined: Tue Aug 15, 2006 1:29 pm
Location: SoCAL!!!!

Post by afbase »

Code: Select all

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

i dunno, elaborate
Post Reply