i am making a smiple flash form with 3 fields, and this below is the code
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(“tha-duke.netau.net/public_html/mailscript.php”,receiveLoad);
}
receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.gotoAndStop(“success”);
}
else {
}
}
this is then ment to comunicate with my php below
<?PHP
$to = “*********@hotmail.com”;
$subject = “Email from Website Flash Form”;
$message = “Name: ” . $theName;
$message .= “nEmail: ” . $theEmail;
£message .= “nnMessage: ” . $theMessage;
$headers = “From: $theEmail”;
$headers .= “nReply-To: $theEmail”;
$sentOk mail($to,$subject,$message,$hearders);
echo “sentOk=” .$sentOk;
?>
for some reason when i upload the file to my ftp it is not working can anyone help?