I can’t figure out what I’m missing.
$info = mysql_fetch_array($dataz);
$body = '
<html>
<head>
<title> Summary Report </title>
</head>
<body>
<p>Type of incident: {$info['type']}</p>
<p>Date upon entry: {$info['date']}</p>
<p>Time upon entry: {$info['time']}</p>
<p>Your account name: {$info['reporter']}</p>
<p>Your incident ID number: {$info['ID']}</p>
<p>Your description of the incident: {$info['desc']}</p>
</body>
</html>';
$headers = 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail($info['email'], "subject!", $body, $headers);
You’re initialising your
$bodystring with single quotes when you need to use double quotes to take advantage of PHP’s variable replacement.