February 2006
Intermediate to advanced
826 pages
63h 42m
English
In this example (Figure 15-6), only one operating system may be selected. The checked attribute makes the button “on” by default when the page loads. Only data from the “on” radio button is sent when the form is submitted.
<p>Which of the following operating systems have you used?</p>
<inputtype="radio" name="os" value="WinXP" /> Windows XP
<input type="radio" name="os" value="Linux" /> Linux
<input type="radio" name="os" value="OSX" checked="checked" /> Macintosh OSX
<input type="radio" name="os" value="DOS" /> DOS
Figure 15-6. Only one radio button in a group may be selected