# Flash Emailform PHP Problem

**URL:** https://forum.kirupa.com/t/flash-emailform-php-problem/286897
**Category:** flash
**Created:** [April 22, 2009, 2:58pm UTC](https://forum.kirupa.com/t/flash-emailform-php-problem/286897 "2009-04-22T14:58:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![solo244](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@solo244](https://forum.kirupa.com/u/solo244)
#### Post date: [April 22, 2009, 2:58pm UTC](https://forum.kirupa.com/t/flash-emailform-php-problem/286897/1 "2009-04-22T14:58:51Z")

</div>

I not that new to flash but I am new to PHP and this kinda server usage (My native language isnt English so sorry if it’s sounds a little off)

Here’s my problem: I have a site online with my PHP file on my server. My server supports PHP latest version. I think everything is in order (i’ve followed tuts online) but when i receive the email it doesnt say anything except that the sender is invalid and it leaves things like name: and message: blank. I’ll give my code. Can someone help me figure out why it wont work, what i did wrong ? Thx

AS Code on emailform

```auto
stop();

var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();

sender.onRelease = function()
{
    senderLoad.theName = theName.text;
    senderLoad.theEmail = theEmail.text;
    senderLoad.theGsm = theGsm.text;
    senderLoad.theAdres = theAdres.text;
    senderLoad.theMessage = theMessage.text;
    senderLoad.sendAndLoad("http://www.mysite.be/send.php",receiveLoad);
}

receiveLoad.onLoad = function()
{
    if(this.sentOk)
    {
        _root.gotoAndStop("succes");
    }
    else
    {
        _root.gotoAndStop("failed");
    }
}

```

And this my PHP code

```php

<?PHP

$to = "target@hotmail.com";
$subject = "Flash Contact Form Submission";
$message = "Name: " . $theName;
$message .= "
Email: " . $theEmail;
$message .= "
Gsm: " . $theGsm;
$message .= "
Adres: " . $theAdres;
$message .= "

Message: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "
Reply-To: $theEmail";

mail($to,$subject,$message,$headers);

?>

```

Thx in advance
