Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple option boxes

Status
Not open for further replies.

kruxty

Programmer
Jul 17, 2001
197
PT
Hi,

i want to have (eg.) 10 optionboxes in my form. My problem is that the optionboxes just let choose one for form but i need to choose five for form. In my form i have 5 options and i want the user to say "True" or "False". Im doing this with checkboxes, and i know i can this with list/menu boxes, but i need to do this with optionboxes :(

Any help?
 
I think we need more information. Can you show use a portion of your html? Maybe that context will help us understand a little better what your looking for.

barcode_1.gif
 
i think the code will not help.
I need to choose 5 optionboxes in 10.
They all need to be in a form.
 
No i mean optionboxes (that ones with circles).
Optionboxes just let choose one by form. But i have 5 options to make in that form. So i need 10 optionboxes, but the user just chooses one for each option.

My problem deals with the fact that the form just let me choose one of them.
 
Round radio buttons are used to chose one of several.

Square checkboxes are used to select all, some, or none.
 
Then you mean Radio buttons?
You are throwing us with the name optionboxes.

If you mean the little round radio buttons where if say you have two one marked Yes and one marked No and you click Yes then the No option is no longer selected, then I think I know what you want.

You are NOT limited to only one per form, you just have to name them differently.
Code:
True:<input type="radio" name="R1" value="True">
False:<input type="radio" name="R1" value="False">

Naming the two radio buttons with the same name makes them linked so that only one button of that name will ever be selected.
Naming them something else makes them a new group so if you want another True/False set just create another pair with a new name like:
Code:
True:<input type="radio" name="R[COLOR=red]2[/color]" value="True">
False:<input type="radio" name="R[COLOR=red]2[/color]" value="False">

But this is all basic HTML not ASP. You should post in the HTML forum for more info on the buttons and post here if you are having problems retrieving the values submitted from the form for those buttons.

If this is not what you are looking for then I am just totally lost and we really need to see sample code showing what you want even if it is not currently working.


It's hard to think outside the box when I'm trapped in a cubicle.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top