If the checkbox is checked, then the handler flies 1, otherwise 0

    2 answers 2

     // PHP $ch = isset($_POST['ch']) ? $_POST['ch'] : 0; // HTML <input type="checkbox" name="ch" value="1"> 

      Give the checkbox the name attribute and in the handler use this checkbox for the name attribute, the checked value will pass to the handler 1!