Do you guys know when you submit a form via PHP, is the form checkbox value being treated as the string "true" or boolean true? Assuming my checkbox value attribute was set to "true".
When you submit a checkbox, the value will be whatever you set the value attribute as, and will be a string when PHP parses the form data and populates $_REQUEST
and friends.
If you don't specify a value in the form, then browsers default to "on"
, not "true"
(this is being made standard behaviour in HTML 5).