Download Radio Buttons 9-6-2011

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Forms
RadioButtons/Check Boxes
 Web
forms function as input templates
for new information, and can also be
used to query and display existing data
in a similar manner to mail merge forms,
with the same advantages.
 The data collected in a Web form is
stored and analyzed with software on a
Web server
 The
most typical elements used in Web
forms to collect data from the user are:
• Radio Buttons
• Check Boxes
• Drop-down Lists
• Text Areas
• Input Boxes
A
radio button is a form element
used to give the user the ability to
choose ONE option from many
possible options
A
check box is a form element which
allows you to make MANY choices from
several options.
 Check Boxes
• Each element has a different name
• The value is based on whatever information is
•
•
•
•
•
needed (see sample code below)
<p>Like
<input type="checkbox" name="checkbox"
value="checkbox">
Don't Like
<input type="checkbox" name="checkbox2"
value="checkbox">
</p>

Radio Buttons
• The names of the element is the same with all buttons
•
•
•
•
•
•
•
•
related to a single option
The value varies as to the various options
<p>Good
<input type="radio" name="Choice2" value="good">
Gooder
<input type="radio" name="Choice2"
value="gooder">
Goodest
<input type="radio" name="Choice2"
value="goodest">
</p>
 Radio
buttons are ONLY to be used when
a singular option is to be chosen.
 Check boxes are ONLY to be used when
several options are to be chosen.
 The use of radio buttons and check boxes
are universal. Never exchange one for
the other!