Try it out...check it and uncheck it.
Behind the scenes, the above check box was created with the following HTML code
<FORM>
<INPUT TYPE = "CHECKBOX"
NAME = "check"
>
</FORM>
| Attribute | Description |
|---|---|
| TYPE | Specifies the type of interface widget. For a check box widget, you use "CHECKBOX" |
| NAME | Specifies the variable name associated with this widget |
| VALUE | Specifies the VALUE that will be sent in the URL encoded string if the check box is checked. If it is not checked, neither the name nor the value will be part of the URL encoded string. |
| CHECKED | Specifies that the check box will be checked by default. |
The NAME and VALUE attributes
Here is the code that we used to make them.
<FORM>
<TABLE BORDER = "1">
<TR>
<TD>Apples</TD>
<TD><INPUT TYPE = "CHECKBOX"
NAME = "apple_is_checked"
VALUE= "yes"
>
</TD>
</TR>
<TR>
<TD>Oranges</TD>
<TD><INPUT TYPE = "CHECKBOX"
NAME = "orange_is_checked"
VALUE= "yes"
>
</TD>
</TR>
</TABLE>
</FORM>
apple_is_checked=yes&orange_is_checked=yes
The CHECKED Attribute
And here is the code that we used to make those checkboxes.
<FORM>
<TABLE BORDER = "1">
<TR>
<TD>Download JDK 1.1.4 for Java</TD>
<TD><INPUT TYPE = "CHECKBOX"
NAME = "download_jdk"
VALUE = "yes"
>
</TD>
</TR>
<TR>
<TD>Download the AFC for Java</TD>
<TD><INPUT TYPE = "CHECKBOX"
NAME = "download_afc"
VALUE = "yes" CHECKED
>
</TD>
</TR>
</TABLE>
</FORM>