Jump to content

Flash form 2


eric200678

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...