# Flash/php form

**URL:** <https://forum.kirupa.com/t/flash-php-form/161183>\
**Category:** Uncategorized\
**Created:** [September 1, 2005, 4:56pm UTC](https://forum.kirupa.com/t/flash-php-form/161183 "2005-09-01T16:56:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)\
**Post date:** [September 1, 2005, 4:56pm UTC](https://forum.kirupa.com/t/flash-php-form/161183/1 "2005-09-01T16:56:07Z")

</div>

Hy there guys!  
I’ve followed the kirupa tutorial [size=2][font=Verdana][size=4][color=#003366][Email Form Using PHP](http://www.kirupa.com/developer/actionscript/flash_php_email.htm) [/color][size=2][color=black], but my [/color][/size][/size][/font][/size]problem is I don’t understand php language, and have 2more input areas, with the var names “telefone” and “assunto”.

The question is: what am i supose to write in the .php file, so these vars can also be posted in the received emails ?

my php codes are:

[font=Verdana][size=1][color=#003366]\<?php[/color][/size][/font]  
[font=Verdana][color=#003366]  
[size=1]$sendTo = “[/size][[size=1]pantas@oninetspeed.pt[/size]](mailto:pantas@oninetspeed.pt)[size=1]”;  
$subject = “Contacto através do site TP”;[/size][/color][/font]  
[font=Verdana][size=1][color=#003366]$headers = “From: " . $\_POST[“firstName”] .” “. $\_POST[“lastname”] . “\<” . $\_POST[“email”] .”\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-path: " . $\_POST[“email”];[/color][/size][/font]

[font=Verdana][size=1][color=#003366]$message = $\_POST[“name”] $\_POST[“email”] $\_POST[“telefone”] $\_POST[“assunto”] $\_POST[“message”] ;[/color][/size][/font]  
[font=Verdana][color=#003366]  
[size=1]mail($sendTo, $subject, $message, $headers);[/size][/color][/font]  
[font=Verdana][color=#003366][size=1]?\>[/size][/color][/font]

[font=Verdana][color=#003366][color=black]where’s the error?[/color][/color][/font]  
[font=Verdana][color=#003366][color=#000000][/color][/color][/font]  
[font=Verdana][color=#003366][color=#000000]thanks in advance :)[/color]  
[/color][/font]
