I have a checkbox and I want to verify that it is or is not checked.
Right now I only get 1 answer regardless if the checkbox is checked or not.
if (empty($delete_3))
{
echo " Not Deleting 3 ";
}
else
{
echo " Going to delete 3 ";
}
I've been trying different code for the if statement and not really sure what I should use.
Is this a valid statement??
if ($delete_3 != 'Null')
This is my form code
<input type='checkbox' name='delete_3'>Select to Delete image
There are 5 different checkboxes on the same from 1-5, could this be a problem?