# Flash sends data to PHP, browser waiting for data

**URL:** <https://forum.kirupa.com/t/flash-sends-data-to-php-browser-waiting-for-data/209077>\
**Category:** flash\
**Created:** [December 5, 2006, 7:09pm UTC](https://forum.kirupa.com/t/flash-sends-data-to-php-browser-waiting-for-data/209077 "2006-12-05T19:09:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armored](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Armored](https://forum.kirupa.com/u/Armored)\
**Post date:** [December 5, 2006, 7:09pm UTC](https://forum.kirupa.com/t/flash-sends-data-to-php-browser-waiting-for-data/209077/1 "2006-12-05T19:09:39Z")

</div>

Hi,

I have the following problem. I’m implementing a flash form mailer using PHP to send out the mail. I’m doing this in the actionscript to sed out the data:

\_root.mcDataField.loadVariables(“form.php”, “POST”);

Then my PHP script looks like this:

$sendTo = "xyz@server.com";  
$subject = “Some title here”;

$headers = "From: " . $\_POST[“Name”]. “\<” . $\_POST[“Email”] . "\>  
";  
$headers .= "Reply-To: " . $\_POST[“Email”] . "  
";  
$headers .= "Return-Path: " . $\_POST[“Email”];

$message = $\_POST[“Message”];  
$retVal = mail($sendTo, $subject, $message, $headers);

When I sendthe data, it gets emailed, but the browser shows (in the bottom left corner): “Waiting for [xyz.com](http://xyz.com)”, where [xyz.com](http://xyz.com) is the server I have my files on.

Any idea would be greatly appreciated! Thank you!
