# Help with form and php setup

**URL:** <https://forum.kirupa.com/t/help-with-form-and-php-setup/287196>\
**Category:** flash\
**Created:** [April 27, 2009, 9:46pm UTC](https://forum.kirupa.com/t/help-with-form-and-php-setup/287196 "2009-04-27T21:46:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChaseJ](https://avatars.discourse-cdn.com/v4/letter/c/53a042/32.png) [@ChaseJ](https://forum.kirupa.com/u/ChaseJ)\
**Post date:** [April 27, 2009, 9:46pm UTC](https://forum.kirupa.com/t/help-with-form-and-php-setup/287196/1 "2009-04-27T21:46:16Z")

</div>

Hi,  
New here and was wondering if anyone can help with a form i am doing. Everything seems to be working great except that when i receive the email i dont get any information. I get:  
Name:  
Email:

Message:

but nothing indicating what i typed in the form. i am attaching the .fla file and .php file. Here is the code as well.

```auto
stop();

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

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

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

```

and php code:

```auto
<?PHP

$to = "johnsonachase@gmail.com";
$subject = "Jerry Hurless Construction Website Form Submission";
$message = "Name: " . $theName;
$message .= "
Email: " . $theEmail;
$message .= "

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

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

echo "sentOK=" . $sentOK;

?>

```

THANKS!
