Hi, am new to php so please be patient. I have a html form that is driven by this php code below. My question is I want to add a cc and bcc where do i stick this in the code?
php:
<?
$SendFrom = "theconerstonechurch@Alum.com";
$SendTo = "theconerstonechurch@Alum.com";
$SubjectLine = "Sign Me Up For Email";
$ThanksURL = "thanks.html"; //confirmation page
$Divider = "~~~~~~~~~~";
$MsgBody = gethostbyaddr($REMOTE_ADDR) . "\n$Divider\n";
foreach ($_POST as $Field=>$Value)
$MsgBody .= "$Field: $Value\n";
$MsgBody .= $Divider . "\n" . $HTTP_USER_AGENT . "\n";
$MsgBody = htmlspecialchars($MsgBody); //make content safe
mail($SendTo, $SubjectLine, $MsgBody, "From: " . $SendFrom);
header("Location: $ThanksURL");
exit;
?>
Thanks a bunch!
s-weet