# Flash PHP Email Problem

**URL:** <https://forum.kirupa.com/t/flash-php-email-problem/127787>\
**Category:** Uncategorized\
**Created:** [November 6, 2004, 6:43am UTC](https://forum.kirupa.com/t/flash-php-email-problem/127787 "2004-11-06T06:43:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbkons](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@jbkons](https://forum.kirupa.com/u/jbkons)\
**Post date:** [November 6, 2004, 6:43am UTC](https://forum.kirupa.com/t/flash-php-email-problem/127787/1 "2004-11-06T06:43:13Z")

</div>

Hi all,

I am trying to implement a comment form for a flash page using a php email system. I am new to flash, but I got it working for the most part. The problem is that I receive emails, but they are blank and do not contain the info I put in. Below is the Actionscript I used and the php I used. Any help would lbe gret. Thanks!

AS

on (release) {

if (!FirstName.length) {  
EmailStatus = “Please Enter your name.”;  
}

else if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {  
EmailStatus = “Please enter a valid E-mail”;  
}  
else if (!ToComments.length) {  
EmailStatus = “Please enter your message”;  
}

else {  
loadVariablesNum (“MailPHP.php”, “0”, “Post”);  
gotoAndPlay(10);  
}  
}

php code

\<?  
$ToEmail = “[jbb@hotmail.com](mailto:jbb@hotmail.com)”;  
$ToSubject = “Flash contact form”;  
$EmailBody = "Sent By: $FirstName  
Senders Email: $Email

Message Sent:  
$ToComments  
“;  
mail($ToName.” \<".$ToEmail."\>",$ToSubject, $EmailBody, “From: “.$FirstName.” \<”.$Email."\>");  
?\>
