Here is my code:
<?
if (!$hidSubmit) {
?>
<form method="post" action="<? print $_SERVER['SCRIPT_NAME'] . "?" . $_SERVER['QUERY_STRING']; ?>">
<table width=100%>
<tr>
<td>
<input type="checkbox" name"Reason" value="Photo is too dark">Photo is too dark
</td>
</tr>
<tr>
<td>
<input type="checkbox" name"Reason" value="Photo is blurred low resolution">Photo is blurred low resolution
</td>
</tr>
<tr>
<td>
<input type="checkbox" name"Reason" value="Photo is not cropped properly">Photo is not cropped properly
</td>
</tr>
<tr>
<td>
<input type="checkbox" name"Reason" value="Not a roster type photo">Not a roster type photo
</td>
</tr>
<tr>
<td>
<input type="checkbox" name"Reason" value="Duplicate photo">Duplicate photo
</td>
</tr>
<tr>
<td>
<input type="checkbox" name"Reason" value="Unable to see entire locomotive, may be partially blocked">Unable to see entire locomotive, may be partially blocked
</td>
</tr>
<tr>
<td>
Reason:<textarea name="Other" rows="10" style="width: 100%;"></textarea>
</td></tr>
<tr><td>
<input name="PhotoID" type="hidden" value="<? print $PhotoID; ?>">
<input name="Accept" type="hidden" value="<? print $Accept; ?>">
<input type="submit" name="Reject" value="Reject">
<input name="hidSubmit" type="hidden" id="hidSubmit2" value="true">
</td></tr>
</table>
</form>
<?
require ("Footer.php");
exit;
} else {
$strReason="";
$count=count($Reason);
for($i=0;$i<$count;$i++){$strReason="$strReason$Reason[$i]<br>";}
mail("email", "Your photo has been deleted", "
Hello $FirstName,
Your photo has been deleted for the following reason(s):
--------------------------------------
$strReason
$Other
--------------------------------------
We encourage you to correct the problem and resubmit your photo. If you think this was in error, please reply to this email with your reason as well as attach the photo.
", "From: Webmaster@LocoPhotos.com");
}