email part vastly cut down.
- Code: Select all
$fields = array('date', 'name', 'sid', 'bdate', 'saddress', 'city', 'state', 'zip', 'cell', 'alternate', 'email', 'condition', 'classes', 'assignments', 'communication', 'evaluation', 'timeconstraints', 'attendance', 'campus', 'cocurricular', 'accommodationsused', 'tape', 'note', 'device', 'signl', 'caption', 'tcalculator', 'enlarger', 'braille', 'dragon', 'other', 'otherspecify', 'extend', 'environment', 'processor', 'spell', 'calculator', 'reader', 'waiver', 'reduced', 'oaccommodation', 'affirm', 'filled', 'parentname', 'fillother');
//$to = "mhoover@dacc.edu";
$to2 = "aabdelzaher@dacc.edu";
//$to3 ="voliver@dacc.edu";
$subject = "Request for Accommodations";
$headers ='MIME-Version: 1.0' .PHP_EOL;
$headers .='Content-type: text/html; charset=iso-8859-1' . PHP_EOL;
$headers .= "From: noreply@dacc.edu\r\n" . "X-Mailer: php";
$greet = "The following was submitted on " . date("F j, Y, g:i a") . "<p><p>";
$body = $greet ;
$cn = 1;
foreach($fields as $efield) {
if(isset($_POST[$efield])) {
if($efield == "date") {
$body.= "<strong>". " Today's date: "."</strong> " . $_POST[$efield] ."<p>";
} elseif($efield == "tape") {
$body.= "<em>For Class Notes:</em><p><strong>". "Tape recorder:"." </strong> " . $_POST[$efield] .",<p>";
} elseif($efield == "note") {
$body.= "<strong>". "Note Taker: "."</strong> " . $_POST[$efield] .",<p><p>";
}
}
}
Form fields
- Code: Select all
<tr>
<td style="width: 124px" class="style15">Tape Recorder<?php if(isset($problems['tape'])) {?> <font color="red">*</font><?php } ?></td>
<td class="style9">
<input name="tape" id="tape1" type="checkbox" value="used before," <?php if(isset($_POST['tape'])) echo "checked"; ?>><span class="style15">
</span>
</td>
<td class="style9">
<input name="tape" id="tape2" type="checkbox" class="style15" value="helpful in past," <?php if(isset($_POST['tape'])) echo "checked"; ?>> <span class="style15">
</span>
<td class="style9">
<input name="tape" id="tape3"class="style15" type="checkbox" value="requesting from DACC" <?php if(isset($_POST['tape'])) echo "checked"; ?>><span class="style15">
</span>
<td class="style9">
<input name="tape" id="tape4" type="checkbox" value="NA" class="style15"<?php if(isset($_POST['tape'])) echo "checked"; ?>><span class="style15">
</span>
</tr>
<tr> <td style="width: 124px" class="style15">Note Taker<?php if(isset($problems['note'])) {?> <font color="red">*</font><?php } ?></td>
<td class="style9">
<input name="note" type="checkbox" value="used before," <?php if(isset($_POST['note'])) echo "checked"; ?> class="style15"><span class="style15">
</span>
</td>
<td class="style9">
<input name="note" type="checkbox" value= "been helpful in the past," <?php if(isset($_POST['note'])) echo "checked"; ?> class="style15"><span class="style15">
</span>
<td class="style9">
<input name="note" type="checkbox" value= "requesting from DACC" <?php if(isset($_POST['note'])) echo "checked"; ?> class="style15"><span class="style15">
</span>
<td class="style9">
<input name="note" type="checkbox" value="NA" <?php if(isset($_POST['note'])) echo "checked"; ?> class="style15"><span class="style15">
</span>
</tr>


