The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Multiple columns ina SELECT BOX - ?
htmlanian
post Jan 16 2007, 02:21 PM
Post #1





Group: Members
Posts: 3
Joined: 16-January 07
Member No.: 1,594



Hi,

I'm trying to build a few PHP forms. One of the form has a requirement that - There should be a field (Select box or a pop up) which shows the configuration of an item (which means i should display 3-4 columns in one row) and they should be able to select any one of the combinations (row). So my question is:

Is it possible to query & display multiple columns in a select box? If yes, how? If no, can anyone suggest me a better way to code the above requirement.

Thanks all for your advice & help.

- HtmlAnian
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jan 16 2007, 03:34 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,665
Joined: 10-August 06
Member No.: 7



QUOTE(htmlanian @ Jan 16 2007, 08:21 PM) *

Is it possible to query & display multiple columns in a select box?

Not yet, but in the future OPTGROUP elements might be nested.

QUOTE
If no, can anyone suggest me a better way to code the above requirement.

Not sure I understood what you want to do. unsure.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jan 16 2007, 03:51 PM
Post #3


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



I'd use a set of radio buttons, with a table that shows the details of the configuration for each radio button.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
htmlanian
post Jan 16 2007, 04:24 PM
Post #4





Group: Members
Posts: 3
Joined: 16-January 07
Member No.: 1,594



QUOTE(Darin McGrew @ Jan 16 2007, 12:51 PM) *

I'd use a set of radio buttons, with a table that shows the details of the configuration for each radio button.


The idea sounds good. But would you put the table on the form or some place else? The reason I'm asking this question is there will be a lot of data in the table, so if you put it on the form....everything gets messy. I don;t know if i'm making sense to you or not. Any suggestions?

- htmlanian
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
htmlanian
post Jan 16 2007, 04:30 PM
Post #5





Group: Members
Posts: 3
Joined: 16-January 07
Member No.: 1,594



QUOTE(Christian J @ Jan 16 2007, 12:34 PM) *

QUOTE(htmlanian @ Jan 16 2007, 08:21 PM) *

Is it possible to query & display multiple columns in a select box?

Not yet, but in the future OPTGROUP elements might be nested.

QUOTE
If no, can anyone suggest me a better way to code the above requirement.

Not sure I understood what you want to do. unsure.gif



Hi,


Thanks for the info. Basically i need to display a set of columns from the database on to the form. These set of columns are related and makes the record unique. So the user needs to see all the columns. Then user selects one of the options. For example, in a select box suppose you query a column from dB and display it. then user selects one option right? In a similar way, just imagine that i have to display not one but 3 columns and this field (which comprises a combination of 3 coloumns), whatever the field is called should be on the form just like a select box or it can be a pop-up. How do you do that? Any suggestions?

- htmlanian
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jan 16 2007, 06:10 PM
Post #6


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



QUOTE(htmlanian @ Jan 16 2007, 01:24 PM) *
But would you put the table on the form or some place else?
I'd put the table in the form. The table would contain only the radio buttons for the various options and whatever data is needed to properly identify the options. Other form-related content (including a submit button, at least) would be inside the form, but outside this table.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 9th May 2024 - 11:29 PM