Forum Moderators: open

Message Too Old, No Replies

Form - Option Drop Down Question

Passing more than one value per dropdown choice

         

esaslo

5:04 pm on Jun 16, 2003 (gmt 0)

10+ Year Member



Hey All,

I have a simple Drop Down Form/menu Question;

I have four options in my drop down menu, call them:
A
B
C
D

For each option, I need to pass the following information:
A, name, price, etc., etc.,
B, name, price, etc., etc.,
...

How do I format my form/table to make ONE dropdown selection (Say the dropdown selection of A) to pass the values name, price, etc., etc., to the next step?

Thanks for your Help!

korkus2000

5:07 pm on Jun 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are these values tied to a database? What will be grabbing the info, js, PHP, CGI, ASP?

esaslo

5:19 pm on Jun 16, 2003 (gmt 0)

10+ Year Member



Values are tied to a ecommerce card I created; uses CGI and JScript. Basically, the values are passed to another page, which then reads the values (like it normally would, etc.); In the past, I have one occurance of each field in each form; now, however, with the possibility of more options, I need to send the entire string of data tied information in one request; i.e., more than one choice per form area.

To rephrase this another way, I need to have all my attributes sent along with the option/select; I can't seem to get it to send more than one, as the "hidden" input type isn't being recognized.

stickledene

12:55 am on Jun 17, 2003 (gmt 0)

10+ Year Member



can you send an item_id from the form to a database and drag all the remaining data you need from that database?

tbh I'm a little confused at what you're trying to accomplish. Can you give me an example?

Sorry,

Sticky

txbakers

3:06 am on Jun 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



make the value of the select options contain all the information you need, separated by the "pipe" character, and parse it server side as follows:

<option value="mywidget¦blue¦19¦45.00">Blue Widget - Size 19 - $45.00</option>