Form Tags: Check Box

 

Form Tags

 

CHECKBOX

Use the Checkbox tag to create a box that your visitor can check or uncheck. A checked box indicates agreement with something. Yes/no answers are best left to the Radio button element.

Example Checkbox:

Put me on your mailing list!

 

Here's the html code:

<P><INPUT TYPE="Checkbox" NAME="Mailing list" VALUE="Add me!" CHECKED>Put me on your mailing list!</P>

 

 

Parts of the Checkbox Tag

HTML Label (Example: "Put me on your mailing list!")

Check boxes are labeled with regular html text so your visitors can understand what information they are expected to provide. You can put your label before or after the Checkbox tag.

Note: The label is not actually part of the Checkbox tag itself and is not included in the form data sent.

NAME="anytext"

The NAME is used by the Thank You page and email to name the information in the check box.

VALUE="anytext"

The VALUE text is submitted if the box is checked. Otherwise, nothing is submitted. To have blank fields returned in the email, use the "print_black_fields" command.

 

Notes

You can have more than one Checkbox with the same NAME, each with a different VALUE. The values of all checked boxes that have the same NAME will be returned to you in a list, separated by commas. The result is the same as using a Multiple Select control.

 

 


TextArea


Home


Radio Button