# Problem with PHP email Form

**URL:** <https://forum.kirupa.com/t/problem-with-php-email-form/164253>\
**Category:** programming\
**Created:** [September 29, 2005, 4:19pm UTC](https://forum.kirupa.com/t/problem-with-php-email-form/164253 "2005-09-29T16:19:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![genoasboy](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@genoasboy](https://forum.kirupa.com/u/genoasboy)\
**Post date:** [September 29, 2005, 4:19pm UTC](https://forum.kirupa.com/t/problem-with-php-email-form/164253/1 "2005-09-29T16:19:53Z")

</div>

I’m using the PHP email tutorial in the PHP XML section. I’ve got it to function properly however; I would like to add more input fields.

When I added my new fields, the email I received only retrieved what was in the message field.

How do I configure my PHP script to retrieve the info from the new fields I’ve added?

**Here’s the PHP script:**  
[font=Arial][size=2]\<?php  
$sendTo = “[[u][color=#0000ff]erik@jdoubledesign.com[/color][/u]](mailto:erik@jdoubledesign.com)”;  
$subject = “Music Seminar Registration”;  
$headers = "From: " . $\_POST[“name”];  
$headers .= “\<” . $\_POST[“email”] . "\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-Path: " . $\_POST[“email”];  
$message = $\_POST[“telephone”];  
mail($sendTo, $subject, $message, $headers);  
?\> [/size][/font]

[font=Arial] **Here’s he script from my fla. file:** [/font]  
[font=Arial][size=2]on (release) {  
// send variables in form movieclip (the textfields)  
// to email PHP page which will send the mail  
form.loadVariables(“email.php”, “POST”);  
}[/size][/font]

[font=Arial] **These are the input fields that I’m adding:** [/font]  
[font=Arial]Company[/font]  
[font=Arial]City[/font]  
[font=Arial]State[/font]
