I have a checkbox which is as follow:
<input name="bcmore" id="bcmore" type="checkbox" value="yes">
I am getting the value Yes, when it is checked, but what I want is to also get some value if it is not checked. So how can I get the value, if it is not checked in php?
One solution is like this:
$checkbox1 = if(isset($_POST['bcmore'])) {
echo "Yes";
} else
echo "No";
But is thery any other way to do the same?