<html>
<head>
<title>CodeAve.com(Forms: Radio Buttons)</title>
</head>
<body bgcolor="#FFFFFF">
Basic Radio Button<br>
<form action="post.asp"
method="post">
<input type="radio"
value="Yes"
name="Radio Button">Yes
<input type="submit"
value="Submit">
</form>
<!-- The basic radio button -->
Preselected Basic Radio Button<br>
<form action="post.asp"
method="post">
<input type="radio"
value="Yes"
name="Radio Button"
checked>Yes
<input type="submit"
value="Submit">
</form>
<!-- The addition of checked to basic radio
button
pre-selects the value -->
Grouped Radio Buttons<br>
<form action="post.asp"
method="post">
<input type="radio"
value="Yes"
name="Radio Button">Yes
<input type="radio"
value="No"
name="Radio Button">No
<input type="submit"
value="Submit">
</form>
<!-- Multiple Radio Buttons with the same name
will allow
users to only select one of many input choices -->
</body>
</html>
|