1A) None of the checkboxes has a checked value, you will need to set the checked value for each one.
2) with a checkbox group, you need to set the name to end with [].
for example:
<label>
<input <?php if (!(strcmp(((isset($_POST["CheckboxGroup1"]))?$_POST["CheckboxGroup1"]:""),"Yes"))) {echo "checked=\"checked\"";} ?> type="checkbox" name="CheckboxGroup1[]" id="CheckboxGroup1_0" value="Business & Emerging Business" />
Business & Emerging Business
</label>
3) in the email body, change:
$MailBody = $MailBody . " <input ";
$MailBody = $MailBody . ((isset($_POST["CheckboxGroup1"]))?$_POST["CheckboxGroup1"]:"Yes");
$MailBody = $MailBody . " type=\"checkbox\" name=\"CheckboxGroup1\" id=\"CheckboxGroup1_0\" />\r\n";
$MailBody = $MailBody . " Business & Emerging Business</label>\r\n";
$MailBody = $MailBody . " <br />\r\n";
to:
$MailBody = $MailBody . (isset($_POST["CheckboxGroup1"]))?$_POST["CheckboxGroup1"]:"")
4) add the following code at line 1 of you form page to convert the multiple checkbox array to a comma separated list of selections:
<?php
if($_SERVER["REQUEST_METHOD"] == "POST") {
foreach($_POST as $key => $val) {
if(is_array($_POST[$key])) $_POST[$key] = implode(", ", $_POST[$key]);
}
}
?>