I am having a problem with a script pyro gave me... This form works for only the Feedback on my site... www.crosspoint.org/feedback.html But, when I link my Registration to this script it doesn't work. Why is that?
<?PHP
$subject = "Feedback";
$headers = "From: Form Mailer";
$forward = 1;
$location = "feedbackthankyou.html";
$addresses = array("webmaster@crosspoint.org","dvaughan@crosspoint.org","lhale@crosspoint.org");
$date = date ("l, F jS, Y");
$time = date ("h:i A");
$msg = "This form was submitted on $date at $time.\n\n";
foreach ($_POST as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
foreach ($addresses as $email) {
mail($email, $subject, $msg, $headers);
}
if ($forward == 1) {
header ("Location:$location");
}
else {
echo ("Thank you for submitting our form.");
}
?>


Reply With Quote
Bookmarks