# New fields for Flash-Based Email Form Using PHP

**URL:** <https://forum.kirupa.com/t/new-fields-for-flash-based-email-form-using-php/299741>\
**Category:** programming\
**Created:** [November 10, 2009, 1:12pm UTC](https://forum.kirupa.com/t/new-fields-for-flash-based-email-form-using-php/299741 "2009-11-10T13:12:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fulci](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fulci](https://forum.kirupa.com/u/fulci)\
**Post date:** [November 10, 2009, 1:12pm UTC](https://forum.kirupa.com/t/new-fields-for-flash-based-email-form-using-php/299741/1 "2009-11-10T13:12:01Z")

</div>

[SIZE=2][COLOR=Black]Hi all, I’ve searched the forums and have found a few threads, buuuut, they’re not exactly what I need.

Basically, I’ve been through the Kirupa [/COLOR][/SIZE][SIZE=2][SIZE=2][FONT=Verdana][SIZE=4][COLOR=#003366][SIZE=2][COLOR=Black]Flash-based Email Form Using PHP, and it works fine, however, I’d like to add two new fields to the form, naming them with variables, ‘phone’ and ‘email’.

How do I update the email.php file? Everything I try, doesn’t work. :geek:

I may be (most probably) wrong, but I’m thinking here is where I make the changes:[/COLOR][/SIZE]

[/COLOR][/SIZE][/FONT][/SIZE][/SIZE]

```auto
// now we can add the content of the message to a body variable

$message = $_POST["message"];

// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);

```

Any ideas/help would be GREAT.

Fulci.  
(Wasn’t sure if this went in the Flash OR php forum - sorry)
