# Flash to PHP to Email - Displays Empty Fields

**URL:** <https://forum.kirupa.com/t/flash-to-php-to-email-displays-empty-fields/188653>\
**Category:** programming\
**Created:** [May 9, 2006, 7:23pm UTC](https://forum.kirupa.com/t/flash-to-php-to-email-displays-empty-fields/188653 "2006-05-09T19:23:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjaworsk1](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sjaworsk1](https://forum.kirupa.com/u/sjaworsk1)\
**Post date:** [May 9, 2006, 7:23pm UTC](https://forum.kirupa.com/t/flash-to-php-to-email-displays-empty-fields/188653/1 "2006-05-09T19:23:59Z")

</div>

I created a form in flash with 4 fields labeled “theName, theEmail, thePhone, theMessage” and have the code as such:

stop();  
var senderLoad:LoadVars = new LoadVars();  
var receiveLoad:LoadVars = new LoadVars();  
sender.onRelease = function() {  
senderLoad.theName = theName.text;  
senderLoad.theEmail = theEmail.text;  
senderLoad.thePhone = thePhone.text;  
senderLoad.theMessage = theMessage.text;  
senderLoad.sendAndLoad("\<A href=“[http://www.blackstonesbarnyc.com/PHP/PartyForm.php",receiveLoad"](http://www.blackstonesbarnyc.com/PHP/PartyForm.php%22,receiveLoad%22)\>[http://www.blackstonesbarnyc.com/PHP/PartyForm.php](http://www.blackstonesbarnyc.com/PHP/PartyForm.php)”,receiveLoad);  
}  
receiveLoad.onLoad = function() {  
if(this.sentOk) {  
\_root.gotoAndStop(“success”);  
}  
else {  
\_root.gotoAndStop(“failed”);  
}  
}

this is directed to my php file with the following code:

\<?PHP  
$to = [myname@myemail.com](mailto:myname@myemail.com);  
$subject = “Party Form”;  
$message = "Name: " . $theName;  
$message .= "  
Email: " . $theEmail;  
$message .= "

Phone: " . $thePhone;  
$message .= "

Message: " . $theMessage;  
$headers = “From: $theEmail”;  
$headers .= "  
Reply-To: $theEmail";  
$sentOk = mail($to,$subject,$message,$headers);  
echo “sentOk=” . $sentOk;  
?\>

Issue is, I only receive empty text fields in my email:

[SIZE=2]Name:  
Email:  
Phone:

Message:

I’ve used this script before and it is currently still running on an existing site, so I can only assume it is some of the modules on this new server not allowing this to go through.

ANY HELP would be GREAT!  
thanks  
[/SIZE]
