RADIO buttons are the small circles option. You can list out as many items as you like with Radio buttons, but only one answer per grouping can be activated at a time. If a new one is selected, the last one becomes unselected.
Note : Notice the NAME value is the same for the group of choices. This is how a radio button can tell if a new value is selected. Only one value can be held in a specified name at one time.
To have a second radio button set on the page, a different NAME value must be used.
|
Please choose an option: <br> <input type="radio" name="sample" value="one" checked> Option 1 <br> <input type="radio" name="sample" value="two"> Option 2 <br> <input type="radio" name="sample" value="three"> Option 3 <br> <input type="radio" name="sample" value="four"> Option 4 |
| input | readies the FORM for visitor input. |
| type="radio" | creates the radio circle |
| name="sample" | creates a NAME for this set of options. Notice how all the options have the same NAME. This group is called "sample". When you get the feedback, this name will be sent. |
| value="one" | an individual name given to each individual option. When you get the feedback, the chosen value name will be sent. |
| checked | creates a default choice. If this property is left out, all options will be blank until the visitor checks one of them. |
Note : Notice the NAME value is the same for the group of choices. This is how a radio button can tell if a new value is selected. Only one value can be held in a specified name at one time.
To have a second radio button set on the page, a different NAME value must be used.

