Building Check Boxes is pretty much the same thing. Start with this.

<FORM>
<INPUT TYPE="checkbox" NAME="Ed">
</FORM>


Add 3 more, but this time give each one a different NAME. (Also add in line breaks if you want)

<FORM>
    <INPUT TYPE="checkbox" NAME="Ed">
<BR><INPUT TYPE="checkbox" NAME="Rick">
<BR><INPUT TYPE="checkbox" NAME="Tom">
<BR><INPUT TYPE="checkbox" NAME="BM">
</FORM>





Each Check Box gets the same VALUE.

<FORM>
    <INPUT TYPE="checkbox" NAME="Ed"   VALUE="YES">
<BR><INPUT TYPE="checkbox" NAME="Rick" VALUE="YES">
<BR><INPUT TYPE="checkbox" NAME="Tom"  VALUE="YES">
<BR><INPUT TYPE="checkbox" NAME="BM"   VALUE="YES">
</FORM>




Note - For Check Boxes the NAME changes and the VALUE stays the same and with Radio Buttons, the VALUE changes but the NAME stays the same. Don't feel bad, my simple mind still gets confused. That's why I lean heavily on html reference documents. (You thought I had all this in my head?? HA!)


OK, let's label each box.

<FORM>
    <INPUT TYPE="checkbox" NAME="Ed"   VALUE="YES">Ed Holleran
<BR><INPUT TYPE="checkbox" NAME="Rick" VALUE="YES">Rick Weinberg
<BR><INPUT TYPE="checkbox" NAME="Tom"  VALUE="YES">Tom Studd
<BR><INPUT TYPE="checkbox" NAME="BM"   VALUE="YES">Burgermeister Meisterburger
</FORM>

Ed Holleran
Rick Weinberg
Tom Studd
Burgermeister Meisterburger

And lastly, you may want to add a little something above your check boxes and maybe pick a couple defaults. Only if you want to of course.

<FORM>
Which of these guys are your friends?
<BR><INPUT TYPE="checkbox" NAME="Ed"   VALUE="YES" CHECKED>Ed Holleran
<BR><INPUT TYPE="checkbox" NAME="Rick" VALUE="YES">Rick Weinberg
<BR><INPUT TYPE="checkbox" NAME="Tom"  VALUE="YES" CHECKED>Tom Studd
<BR><INPUT TYPE="checkbox" NAME="BM"   VALUE="YES">Burgermeister Meisterburger
</FORM>

Which of these guys are your friends?
Ed Holleran
Rick Weinberg
Tom Studd
Burgermeister Meisterburger

The user can choose 1, 2, none or all of the options. Their choices will be returned to you as the name/value pairs...

Ed=YES
Tom=YES

(or what ever they choose... if they choose nothing, nothing will be returned to you)

<< BACK         NEXT >>