checked

checked

HTML Checkbox To PHP Array

Thursday, April 3, 2008 - 16:14

To create a simple HTML check box use the following bit of code.

<input type="checkbox" name="option2" value="Milk" />

To set the checkbox as filled in include a checked attribute. To make the control XHTML compliant you will need to do the following.

Category: