# Adding Fields To E-mail Forms

**URL:** <https://forum.kirupa.com/t/adding-fields-to-e-mail-forms/50549>\
**Category:** flash\
**Created:** [May 4, 2004, 10:52am UTC](https://forum.kirupa.com/t/adding-fields-to-e-mail-forms/50549 "2004-05-04T10:52:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jezthomp](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Jezthomp](https://forum.kirupa.com/u/Jezthomp)\
**Post date:** [May 4, 2004, 10:52am UTC](https://forum.kirupa.com/t/adding-fields-to-e-mail-forms/50549/1 "2004-05-04T10:52:10Z")

</div>

I am using the very good kirupa tut and have added to extra input boxes date and phone

Is this the right php code for adding additional imput boxes?? I have just added 2 lines of message at the bottom.

$headers = "From: " . $\_POST[“name”];  
$headers .= “\<” . $\_POST[“email”] . "\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”];  
$message = $\_POST[“message”];  
$message = $\_POST[“phone”];  
$message = $\_POST[“date”];

do i need to change any of the below code as there are additional message imput boxes now?

mail(recipient, subject, message, other headers);

Thanks for any help, even if it is to say i have it right or wrong

🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2004, 3:03pm UTC](https://forum.kirupa.com/t/adding-fields-to-e-mail-forms/50549/2 "2004-05-04T15:03:53Z")

</div>

Anyone help? 🙂
