Multiple columns ina SELECT BOX - ? |
Multiple columns ina SELECT BOX - ? |
htmlanian |
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 |
Christian J |
Jan 16 2007, 03:34 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,665 Joined: 10-August 06 Member No.: 7 |
|
Darin McGrew |
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.
|
htmlanian |
Jan 16 2007, 04:24 PM
Post
#4
|
Group: Members Posts: 3 Joined: 16-January 07 Member No.: 1,594 |
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 |
htmlanian |
Jan 16 2007, 04:30 PM
Post
#5
|
Group: Members Posts: 3 Joined: 16-January 07 Member No.: 1,594 |
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. 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 |
Darin McGrew |
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 |
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. |
Lo-Fi Version | Time is now: 9th May 2024 - 11:29 PM |