hello i got a problem with my php linking with flash i belive its in php but not sure if my actionscript is messed so here is both:
PHP:
<?
$ToEmail = "blank@unknown.com";
##$ToName = "Unknown";
$ToSubject = "Unknown";
$EmailBody = "Sent By: $userName\nSenders Email: $userEmail\nSenders age: $ageGroup\n\nSenders OS: $OS.OSmac.\n";
$EmailFooter="\nThis message was sent by: $FirstName from $REMOTE_ADDR If you feel that you recieved this e-mail by accident please contact us at www.earcaddy.com";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$userName." <".$Email.">");
Print "_root.Mail.EmailStatus=Complete - Your mail has been sent";
?>
my action script is on a button so here it is as well:
on (release) {
if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address";
}
else if (!Name.length) {
EmailStatus = "Please Enter your name before Sending";
}
else if (!ageGroup.length) {
EmailStatus = "Please bite me";
}
else if (!OS.OSmac.getValue().length) {
EmailStatus = "Please bite me";
trace(sendVars.send("test.php", "POST"));
}
loadVariablesNum ("test.php", "0", "Post");
EmailStatus = "Message Sent Successfully! We will reply shortly.";
}
thanks for the help