ok heres the deal what i did is put my email address in everyone of the fields even the else statement at the end and it email me in each field then i switch the first one only and it still email my other email address so i change the last one which is the default else statement and it email to the right email address heres what it looks like now.
if ($_POST['attn'] == "Pastor Rocky")
{
mail("joel_m_walker@yahoo.com", $subject, $message, $from);
}
else if ($_POST['attn'] == "Pastor Lamar")
{
mail("joel.walker@mybrighthouse.com", $subject, $message, $from);
}
else if ($_POST['attn'] == "Pastor Doug")
{
mail("joel.walker@mybrighthouse.com", $subject, $message, $from);
}
else if ($_POST['attn'] == "Administration")
{
mail("joel.walker@mybrighthouse.com", $subject, $message, $from);
}
else if ($_POST['attn'] == "Daycare")
{
mail("joel.walker@mybrighthouse.com", $subject, $message, $from);
}
else if ($_POST['attn'] == "Webmaster")
{
mail("joel.walker@mybrighthouse.com", $subject, $message, $from);
}
else
{
mail("joel_m_walker@yahoo.com", $subject, $message, $from);
}
so what should i do thanks in advance