# Re-jig PHP Email form

**URL:** <https://forum.kirupa.com/t/re-jig-php-email-form/212411>\
**Category:** programming\
**Created:** [January 10, 2007, 10:22pm UTC](https://forum.kirupa.com/t/re-jig-php-email-form/212411 "2007-01-10T22:22:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_rochford](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@g\_rochford](https://forum.kirupa.com/u/g_rochford)\
**Post date:** [January 10, 2007, 10:22pm UTC](https://forum.kirupa.com/t/re-jig-php-email-form/212411/1 "2007-01-10T22:22:38Z")

</div>

Hi all

I was wondering if some one could help me with my PHP code.

```auto
<?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](mailto: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
