# Additional variables in php form

**URL:** <https://forum.kirupa.com/t/additional-variables-in-php-form/39568>\
**Category:** Uncategorized\
**Created:** [January 8, 2004, 8:29pm UTC](https://forum.kirupa.com/t/additional-variables-in-php-form/39568 "2004-01-08T20:29:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![markhegz](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@markhegz](https://forum.kirupa.com/u/markhegz)\
**Post date:** [January 8, 2004, 8:29pm UTC](https://forum.kirupa.com/t/additional-variables-in-php-form/39568/1 "2004-01-08T20:29:17Z")

</div>

still doesnt work…when i uncomment this line:

```php
//$message = $_POST["message"];

```

and comment out the other three message lines it works fine.

what am i doing wrong?

```php
 <?php

$sendTo = "info@themovement.com";
$subject = "twm contact form";

// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] .">
";

// next include a Reply-To:
$headers .= "Reply-To: " . $_POST["email"];

// now we can add the content of the message to a body variable
//$message = $_POST["message"];
$message_ =_ $_POST["message"] ."
";
$message_.=_$_POST["company"] ."
";
$message_.= $_POST["phone"] ."
"; 

// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);
?>

```
