# \*Adding\* To PHP/MX Mailing Script. Help Please!

**URL:** <https://forum.kirupa.com/t/adding-to-php-mx-mailing-script-help-please/41138>\
**Category:** flash\
**Created:** [January 26, 2004, 2:39am UTC](https://forum.kirupa.com/t/adding-to-php-mx-mailing-script-help-please/41138 "2004-01-26T02:39:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RageW0lf](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@RageW0lf](https://forum.kirupa.com/u/RageW0lf)\
**Post date:** [January 26, 2004, 2:39am UTC](https://forum.kirupa.com/t/adding-to-php-mx-mailing-script-help-please/41138/1 "2004-01-26T02:39:48Z")

</div>

Hi,

I have looked at the PHP mailing tutorial with MX on this site made by Sonocular and it works fine no problems there. However I want to have the user at my site send more stuff to me.

The PHP mail script that I need to alter is as follows:

```php

<?php

$sendTo = "tcarling@yahoo.com";
$subject = "Sent website form";

$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"];

$message = $_POST["message"];

mail($sendTo, $subject, $message, $headers);
?>

```

What I am trying to do is add another field say “address” to this and I am not sure how to do it. I have tried doing the following:

```php

<?php

$sendTo = "tcarling@yahoo.com";
$subject = "Sent website form";

$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"];

$message = $_POST["message"] "
" $_POST["address"]

mail($sendTo, $subject, $message, $headers);
?>

```

but then it doesn’t work at all. Woohoo!

Can anybody explain how I would add another, or several more fields using this script?

Thx for any help.
