# Adding Fields To E-mail Forms

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

🙂
