# Modifying the email form tutorial php file

**URL:** <https://forum.kirupa.com/t/modifying-the-email-form-tutorial-php-file/233399>\
**Category:** programming\
**Created:** [July 23, 2007, 6:09pm UTC](https://forum.kirupa.com/t/modifying-the-email-form-tutorial-php-file/233399 "2007-07-23T18:09:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimjiminyjimjim](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)\
**Post date:** [July 23, 2007, 6:09pm UTC](https://forum.kirupa.com/t/modifying-the-email-form-tutorial-php-file/233399/1 "2007-07-23T18:09:30Z")

</div>

This is the php script from the Flash form tutorial.

```php

<?php

$sendTo = " ********* @gmail.com";
$subject = "My Flash site reply";

$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";

$headers .= "Reply-To: " . $_POST["email"] . "
";

$headers .= "Return-path: " . $_POST["email"];

$message = $_POST["message"];

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

?>

```

I wanted to modify it to add a few more fields instead of just one message field i.e telephone number, address etc

If there are a few more variables posted from flash like this:

```php

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

```

How do I modify this line:

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

to include the new variables within the message field.
