hey guys i am making a flash email form and i have my input filds and i declared my variables too using this
var variables:URLVariables = new URLVariables();
variables.senderName = senderName_txt.text;
variables.replyAddress = replyAdress_txt.text;
variables.telephone = telephone_txt.text;
variables.subject = subject_txt.text;
variables.messageBody = messageBody_txt.text;
how do i pass these variable to my php file named contact.php located in the same folder and make it sent to my email ???
this is the code of my php file :
<?php
$sendTo = "my email is here";
$senderName = $_POST["senderName"];
$replyAddress = $_POST["replyAdress"];
$subject = $_POST["subject"];
$messageBody = $_POST["messageBody"];
$headers = "From: " . $senderName . " <" . $replyAddress . ">
";
mail($sendTo, $subject, $messageBody, $headers);
?>
edit: i forgot to tell you that i want a code for AS3 !!!