anyone knows whats wrong with this PHP mailer ??
i have added it to flash site and it doesnt work, actually does it work with flash or only with HTML ?
I am at work and only looked at your PHP file. Also don’t know if you mean that and HTML one works but a flash one doesn’t? There’s a couple things in your PHP script that I would do differently like have the mail command seperate from the ending if statement, but I don’t know enough about PHP to see if that’s a problem. Check out this thread, it has a tut on how to make a mailer from flash using PHP:
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17623&highlight=email+tutorial
It worked for me!!:beam:
but i need to put this mail form in an MC, not in a HTML page
I know. You can use that tutorial that I posted; but instead of using a stage in a new flash movie, create a movieClip. I would goto insert>new symbol>movieClip - then make your fields with the button on frame one. Just remember if you have any variables printed back to the flash movie, they have to be complete with a path and all:
$result = mail( blah, blah, blah );
if ( $result ){
print "_root.movieClip.statusText=Your email has been sent";
} else {
print "_root.movieClip.statusText=You have had a terrible mishap";
}
I have a working fla if you want to see what that tut looks like at the end.
(-:
can u attach it plz
also, can u check my thread regarding mail form sender ?
Hey,
Sorry it’s taken me a while to get these to you. I’ve been kinda busy. Here’s the stuff:
:beam:
Here’s the PHP:
<?PHP
$to = "your_email_address@whatever.com";
$msg = "$name
";
$msg .= "$phone
";
$msg .= "$email
";
$msg .= "$message
";
mail($to, $subject, $msg, "From: My web site
Reply-To: $email
");
?>
If your server doesn’t have global variables on (I think that’s how you say it, I’m learning as I go too) then you have to add this to the beginning:
$name=$_POST["name"];
$phone=$_POST["phone"];
$email=$_POST["email"];
$message=$_POST["message"];