i know how to get text fields from a form to a sendmail script but how do i get checkboxs to the sendmail script.
here is my form
<form action="sendmail.php" method="post" name="form" id="form">
<p>name
<input name="name" type="text" id="name">
</p>
<p> email
<input name="name2" type="text" id="name2">
<br>
<br>
accept
<input name="accept" type="checkbox" id="accept" value="checkbox">
</p>
<p>decline
<input name="decline" type="checkbox" id="decline" value="checkbox">
</p>
</form>
here is the sendmail.php script without the checkbox stuff
<?
$body = "Name: $name\nemail: $email";
mail("ibruce@nuvo.biz", "info request", $body,"From: $email" );
header( "Location: http://www.ermgroup.com.au/s1.htm" );
?>