[an error occurred while processing this directive]
Radio Buttons
Radio buttons allow the user to choose only one of a number of options. When you choose one option, any previously selected option is unselected. Like checkboxes, you can define a radio button to be checked by default, but unlike checkboxes you should only have one radio button in a group initially checked. Radio buttons are grouped together by assigning them all the same NAME (but different VALUEs).
<BR><INPUT TYPE="radio" NAME="sport" VALUE="soccer" CHECKED>Soccer
<BR><INPUT TYPE="radio" NAME="sport" VALUE="baseball">Baseball
<BR><INPUT TYPE="radio" NAME="sport" VALUE="basketball">Basketball
<BR><INPUT TYPE="radio" NAME="sport" VALUE="football">Football
<BR><INPUT TYPE="radio" NAME="sport" VALUE="hockey">Hockey
Note the similarity to that of a checkbox. The difference is that instead of being able to have a different variable associated with every checkbox, all the radio buttons in a group must have identical NAMEs.
Next lesson: Option lists (drop-down list boxes and scrolling list boxes)
[an error occurred while processing this directive]