php validation code for checkbox
if(isset($_POST['checkbox_name']) && $_POST['checkbox_name']!="")
{
echo 'checkbox is checked';
}
php validation code for checkbox
if(isset($_POST['checkbox_name']) && $_POST['checkbox_name']!="")
{
echo 'checkbox is checked';
}
how check the checkbox is check php
#php 7.x
<?php
if(isset($_POST['test1'])){
echo "checked value1"."<br>";
}
if(isset($_POST['test2'])){
echo "checked value2";
}
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us