I have implemented pyro’s script and I am still waiting
for an email carbon copy to arrive at my second email.
Could somebody please show me where I am going wrong?
Here is the php codes
<?PHP
##################################################
##################################################
###################### Set up the following variables ######################
$to = “
$subject = “Results from your web form.”; #set the subject line
$headers = “From: Form mail Reminder <
$headers .= “Cc: [email][email protected]
$forward = 0; # redirect? 1 : yes || 0 : no
$location = “thanks.php”; #set page to redirect to, if 1 is above
##################### No need to edit below this line ######################
$date = date (“l, F jS, Y”);
$time = date (“h:i A”);
$msg = “Below is the result of your feedback form. It was submitted on $date at $time.nn”;
$msg .= “IP: “.$_SERVER[‘REMOTE_ADDR’].”nn”;
if ($_SERVER[‘REQUEST_METHOD’] == “POST”) {
foreach ($
$msg .= ucfirst ($key) .” : “. $value . “n”;
}
}
else {
foreach ($_GET as $key => $value) {
$msg .= ucfirst ($key) .” : “. $value . “n”;
}
}
mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header (“Location:$location”);
}
else {
echo “Thank you for submitting our form. We will get back to you as soon as possible.”;
}
?>
Any help would be greatly appreciated