Forum Moderators: coopster
Does your script already have the checkbox and the logic to email if checked and you're having problems with the code?
Or have you not written any of it and you're trying to figure out how to go about it?
<input type="checkbox" name="whatever" value="1">
In your receiving script, however, $_POST['whatever'] will have a value of "1" only if the checkbox is checked. So you would need:
if ($_POST['whatever'] == 1) // include this line in email