# Flash form tutorial problems

**URL:** <https://forum.kirupa.com/t/flash-form-tutorial-problems/203996>\
**Category:** flash\
**Created:** [October 16, 2006, 11:33am UTC](https://forum.kirupa.com/t/flash-form-tutorial-problems/203996 "2006-10-16T11:33:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snowmanone](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@snowmanone](https://forum.kirupa.com/u/snowmanone)\
**Post date:** [October 16, 2006, 11:33am UTC](https://forum.kirupa.com/t/flash-form-tutorial-problems/203996/1 "2006-10-16T11:33:31Z")

</div>

Hi,

I did the flash form tutorial here on [kirupa.com](http://kirupa.com)

[http://www.kirupa.com/developer/actionscript/flash\_php\_email.htm](http://www.kirupa.com/developer/actionscript/flash_php_email.htm)

Everyting works fine but if I add a textfield to the flash file and change the php file it still sends the original textfield but not the one I have created. I am using flash 8 and macromedia mx. I just copied the message textfield in flash and dublicted it. Than I gave the dublicated textfield a different instance name (second). After that I published the movie and adjusted the php file. I guess that the mistake is here. Would be cool if you could check the below listed php script and tell me what I am doing wrong. Honestly it’s driving me nuts:stare: as it looks so simple but it just wont work. I marked the lines I added with red. Thanks in advanced:thumb2:…

\<?php  
/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\

- PHP 4.1.0+ version of email script. For more
- information on the mail() function for PHP, see
- [http://www.php.net/manual/en/function.mail.php](http://www.php.net/manual/en/function.mail.php)  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/  
$sendTo = "kai.unger@gmail.com";  
$subject = “My Flash site reply”;

$headers = “From: " . $\_POST[“firstName”] .” “. $\_POST[“lastname”] . “\<” . $\_POST[“email”] .”\>  
";

$headers .= "Reply-To: " . $\_POST[“email”] . "  
";

$headers .= "Return-path: " . $\_POST[“email”];

$message = $\_POST[“message”];  
[COLOR=Red]$second = $\_POST[“second”];  
[/COLOR]  
mail($sendTo, $subject, $message, $headers[COLOR=Red], $second[/COLOR]);

?\>
