I'm trying to make a simple contact form, but I have difficulty to understand how checkbox works. This is the part I have a problem:
HTML:
<input name="selection" type="checkbox">
PHP:
$selection = $_POST['selection'];
$mail->Body = "
Answer is ".$_POST["selection"]."
"
Once the checkbox is clicked and the form is submitted, the function above prints "Answer is on" in the e-mail. How can I print "Answer is Positive" once checkbox is clicked, and "Answer is Negative" when checkbox is not clicked in a simple way?