html checkbox validation using php code example
Example: php validation code for checkbox
if(isset($_POST['checkbox_name']) && $_POST['checkbox_name']!="")
{
echo 'checkbox is checked';
}
if(isset($_POST['checkbox_name']) && $_POST['checkbox_name']!="")
{
echo 'checkbox is checked';
}