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
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
$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