PDA

View Full Version : too many radio buttons???


sarah
10-04-2002, 06:18 PM
Hi there!

Is it possible to use more than one set of radiobuttons for selections in one form? I tried to use two sets, first set is for 'Method One' or 'Method Two', and the second set is for 'Annual Report' or 'Monthly Report'.

I wanted to select 'Method One' and 'Annual Report' but I could only select one 'Method One' or 'Method Two' or 'Annual Report' or 'Monthly Report'.

The syntax is as follows:

<form name="Country">

<select name="country" size="1" onChange="redirect(this.options.selectedIndex)">
<option>Scotland</option>
</select>

<input type="radio" name="radiobutton" value="radiobutton">Method One
<input type="radio" name="radiobutton" value="radiobutton">Method Two<br>
<input type="radiobutton" name="radiobutton" value="radiobutton" checked>Annual Report
<input type="radiobutton" name="radiobutton" value="radiobutton">Monthly Report

</form>

ionsurge
10-04-2002, 06:49 PM
try seperating them somehow, so they become isolated completely from each other.

I don't know what language you are using yet, because I am sort of not really bothered to figure it out, but I guess it is VB-type thing. Anyhow, try to use a different table if it is a html-related page.

If it is vb, just use a different panel.


(*chuffed about the fact that I know vb, and c++*)

webmarkart
10-04-2002, 07:11 PM
If you would like to select more than one radio button then you should use check boxes, not radio buttons.

<FORM ACTION="" METHOD="post">

<INPUT TYPE="checkbox" NAME="method" VALUE="method1">Method One
<INPUT TYPE="checkbox" NAME="method" VALUE="method2">Method Two
<INPUT TYPE="checkbox" NAME="report" VALUE="report1" CHECKED>Annual Report
<INPUT TYPE="checkbox" NAME="report" VALUE="report2">Monthly Report

</FORM>

Roy Sinclair
10-04-2002, 10:11 PM
Yeesh, I thnk the previous responders don't understand the problem.


<form name="Country">

<select name="country" size="1" onChange="redirect(this.options.selectedIndex)">
<option>Scotland</option>
</select>

<input type="radio" name="radiobutton1" value="radiobutton">Method One
<input type="radio" name="radiobutton1" value="radiobutton[">Method Two<br>
<input type="radiobutton" name="radiobutton2" value="radiobutton" checked>Annual Report
<input type="radiobutton" name="radiobutton2" value="radiobutton">Monthly Report

</form>


Note: To get two distinct radio button sets, each set must have their own distinct name.

webmarkart
10-04-2002, 11:30 PM
Perhaps I didn't fully understand the question, but notice I did have distinct names...

adios
10-05-2002, 03:47 AM
<form name="Country">
.........
.........
<input type="radio" name="method" value="one">Method One <br>
<input type="radio" name="method" value="two">Method Two<br><br>
<input type="radio" name="report" value="annual" checked="checked">Annual Report<br>
<input type="radio" name="report" value="monthly">Monthly Report
</form>