Thanks for the tip Homer09001.
I tried this out and now understand how this works but I need a little help incorporating it into my page.
I've attached the code that you sent, modified and inserted into my existing code. It processes the form fine and send the data to our database, but the e-mail message isn't getting sent.
I've attached the code for the e-mail below. Please let me know where the problem is and how to resolve it.
$message = ($config['new_reg_message'] );
$selection = $_POST['prefArea'];
$recip1 = $selection[0];
$recip2 = $selection[1];
$recip3 = $selection[2];
$submitEmail1="$recip1";
$submitEmail2="$recip2";
$submitEmail3="$recip3";
$message ="<table>
<tr>
<td colspan='2' align='center'>
<h3>Title</h3></td>
</tr>
<tr>
<td>Entry Date:</td>
<td>$dt1</td>
</tr>
<tr>
<td>FIRST NAME:</td>
<td>$_POST[firstName]</td>
</tr>
<tr>
<td>LAST NAME:</td>
<td>$_POST[lastName]</td>
</tr>
<tr>
<td>E-MAIL ADDRESS:</td>
<td>$_POST[email]</td>
</tr>
<tr>
<td>COMPANY NAME: </td>
<td>$_POST[company]</td>
</tr>
<tr>
<td>ADDRESS:</td>
<td>$_POST[address1]<br/>
$_POST[address2]</td>
</tr>
<tr>
<td>CITY:</td>
<td>$_POST[city]</td>
</tr>
<tr>
<td>STATE:</td>
<td>$_POST[state]
<tr>
<td>ZIP: </td>
<td>$_POST[zip]</td>
</tr>
<tr>
<td>PHONE: </td>
<td>$_POST[phone]</td>
</tr>
<tr>
<td>DATE OF BIRTH</td>
<td>$dt</td>
</tr>
</table>
";
$from_email = "admin ";
$headers = "MIME-Version: 1.0"."\n";
$headers .= "Content-type: text/html; charset=iso-8859-1"."\n";
$headers .= "From: ME "."\n";
$headers .= "Return-Path: me@mysite.com "."\n";
$headers .= "Reply-To:me@mysite.com ";
mail($submitEmail1, $submitEmail2, $submitEmail3, "Subject - $_POST[firstName] $_POST[lastName]", $message, $headers);
header("location:post.htm" );
exit();
Thanks,
ORDesign