# Email & php

**URL:** <https://forum.kirupa.com/t/email-php/176598>\
**Category:** Uncategorized\
**Created:** [January 25, 2006, 11:09am UTC](https://forum.kirupa.com/t/email-php/176598 "2006-01-25T11:09:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![redjoe100](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@redjoe100](https://forum.kirupa.com/u/redjoe100)\
**Post date:** [January 25, 2006, 11:09am UTC](https://forum.kirupa.com/t/email-php/176598/1 "2006-01-25T11:09:41Z")

</div>

Dear users

I’ve just completed the Lee Brimelow tut on sending an e-mail via php script - [www.gotoandlearn.com](http://www.gotoandlearn.com)

the php is sending the information from the php script but not the information from flash. The php is even responding and playinf the sucess frame in the movie? If any one can shed any light that would be great!

here’s the code

AS-------

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("\<A href=“[http://www.amdsystems.co.uk/send.php",receiveLoad"](http://www.amdsystems.co.uk/send.php%22,receiveLoad%22)\>[http://www.amdsystems.co.uk/send.php](http://www.amdsystems.co.uk/send.php)”,receiveLoad);  
}

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

php-------

\<?PHP  
$to = “[root@amdsystems.co.uk](mailto:root@amdsystems.co.uk)”;  
$subject = “Flash Contact 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 sooooo much!
