# Adding extra fields on a PHP contact form

**URL:** <https://forum.kirupa.com/t/adding-extra-fields-on-a-php-contact-form/313135>\
**Category:** programming\
**Created:** [August 21, 2010, 8:20am UTC](https://forum.kirupa.com/t/adding-extra-fields-on-a-php-contact-form/313135 "2010-08-21T08:20:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drog1998](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@drog1998](https://forum.kirupa.com/u/drog1998)\
**Post date:** [August 21, 2010, 8:20am UTC](https://forum.kirupa.com/t/adding-extra-fields-on-a-php-contact-form/313135/1 "2010-08-21T08:20:43Z")

</div>

Hi all,

could somebody tell me how to add extra fields to the Kirupa Simple Email Form?

I need to add some extras in like telephone, addition info etc. and have them email through with an enquiry.The flash side of thing is straight forward but it’s the PHP i don’t get.

Here’s the PHP from the tutorial

```php
<?php
$sendTo = "senocular@hotmail.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);

?>

```

Thanks.
