# Help with this php script

**URL:** <https://forum.kirupa.com/t/help-with-this-php-script/185350>\
**Category:** programming\
**Created:** [April 12, 2006, 5:58pm UTC](https://forum.kirupa.com/t/help-with-this-php-script/185350 "2006-04-12T17:58:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro\_spy](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pedro\_spy](https://forum.kirupa.com/u/pedro_spy)\
**Post date:** [April 12, 2006, 5:58pm UTC](https://forum.kirupa.com/t/help-with-this-php-script/185350/1 "2006-04-12T17:58:40Z")

</div>

(I don’t speak English! I’ll try to write something understandable!)

Hi! I made the tutorial [COLOR=black]“Based[/COLOR][FONT=Verdana][COLOR=black] Email Form Using PHP”, and I add more fields. My .swf file contains the following fields:[/COLOR][/FONT]

[FONT=Verdana][COLOR=black]Name[/COLOR][/FONT]  
[FONT=Verdana][COLOR=black]Email[/COLOR][/FONT]  
[FONT=Verdana][COLOR=black]Adress[/COLOR][/FONT]  
[FONT=Verdana][COLOR=black]Phone

My PHP script is this:

[/COLOR][/FONT][FONT=Verdana][COLOR=black]

```php

<?php 
 
$sendTo = "pedro.spy@gmail.com"; 
$subject = "Contact";
$headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">
";
$message = $_POST["nome"]. "

". $_POST["adress"]. "

". $_POST["phone"]. "

". $_POST[email];
 
mail($sendTo, $subject, $message, $headers); 
?>

```

Ok. When I receive a message posted through this Flash Email Form, it’s like this:

> 

Pedro Henrique

[pedro.spy@gmail.com](mailto:pedro.spy@gmail.com)

279 Leonina de Oliveira Street

(35) 98060079

But I want to receive a message like this:

> 

Name: Pedro Henrique

Email: [pedro.spy@gmail.com](mailto:pedro.spy@gmail.com)

Adress: 279 Leonina de Oliveira Street

Phone: (35) 98060079

How can I add something to script to receive the message with those titles (Name: - Email: - Adress: - Phone: )?

Sorry for my English!  
[/COLOR][/FONT]
