Question: how to check whether the checkbox is checked or not in php?
Answer: You can check the corresponding value as being set and non-empty in either the $_POST or $_GET array depending on your form's action. i.e.: With a POST form using a name of "test" (i.e.: <input type="checkbox" name="test"> , you'd use: if(isset($_POST['test']) { // The checkbox was enabled... }