Hi all
I was wondering if some one could help me with my PHP code.
<?php
$sendTo = "g_rochford@xxx.co.uk";
$subject = "Contact Form";
$headers = "From: " . $_POST["email"] . "
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];
$message .= "Message: " . $_POST["message"] . "
";
$message .= "Name: " . $_POST["name"] . "
";
$message .= "Email: " . $_POST["email"] . "
";
mail($sendTo, $subject, $message, $headers);
?>
Which part do i need to remove to stop this from happening…
“Started listening to Phil last week. Very Good.Message: Started listening to Phil last week. Very Good.
Name: mark
Email: sutty.mark@blueyonder.co.uk”
As you can see i get the message twice. Ive been trying to remove stuff with varying degrees of success. I bet its really obvious but i just cant see it. Sorry…
Many thanks in advance.
Greg