This tutorial will introduce HTML check boxes and how to deal with them in PHP.
Single check box
Let’s create a simple form with a single check box.
<
form
action
=
"checkbox-form.php"
method
=
"post"
>
Do you need wheelchair access?
<
input
type
=
"checkbox"
name
=
"formWheelchair"
value
=
"Yes"
/>
<
input
type
=
"submit"
name
=
"formSubmit"
value
=
"Submit"
/>
</
form
>