Hi,
I did the flash form tutorial here on kirupa.com
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
***************************************************/
$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]);
?>