CodeAve.com CodeAve.com - HTML - Forms
ASP
JavaScript
CSS
HTML
·Forms
·Hyperlinks
·Headers
·Images
·Tables
·Text Display
·Miscellaneous
·Contents
·What's New?
Maps
Links
Mail List
Search
Sitemap


 


Radio Buttons
Radio Buttons allow for the direct input of a restricted amount of input. Typically radio buttons are used in polls or other areas where there may be one of two or more possible choices and you only want the user to submit one answer out of the possible choices.
View the Output
Text View
Print View
Mail this Link
Download the Code

<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>

 

 

 



ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
Maps: Map Script Writers | Bing Maps | Google Maps
Privacy Statement

CodeAve.com is hosted by MyHosting.com
Donate Food Online with a Mouse Click at TheHungerSite.com
Donate Land Online with a Mouse Click at TheRainForestSite.com
© 1999 - 2014 CodeAve.com
All Rights Reserved