In the PHP script (checkbox-form.php), we can get the submitted option from the POST array. If POST[formWheelchair] is Yes, then the box was checked. If the check box was not checked, POST[formWheelchair] wont be set. PHP Checkbox Example. Posted by: Julen Pardo in PHP August 17th, 2016 0.Notify of new replies to this comment - (off). Subscribe. Refer to my original answer. The PHP code that is trying to access the courses array is in checkbox.php, however your form is set to send the data to page.php. You can check if a check box is checked by checking the value of the checkbox.If it has been checked, then the variable on the php side will contain the word checkbox. You can build your if statement on that.
If you cant find what youre looking for please check the github issues and ask for assistance there until the documentation rewrite is complete.