PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
if (!empty($_POST))
{
print_r($_POST);
}
else echo "No form data submitted via POST!";
?>
Then get you flash application to submit the data to test.php and see what happens.... Once the data gets there, it'll be straight forward enough to do the email sending
The first thing to do is make sure the php file is sending mail correctly. To do that I reccomend building an html page with the same field and form names as your flash file. Submit the html page to the PHP mailing page. If it is working great! If not fix it till it does work. Once you are sure it is working then start testing your flash movie. You are on the right track with your action script.
Before you try jumping directly to sending the email, try just doing a print_r() of what is sent to the PHP script to make sure it's getting there ok
If it's getting there but no email appears to send then chances are it's being picked up by a spam blocker incorrectly. That's to do with the headers that mail() is sending. There's a free class you can use to send emails called phpMailer.... try that
on (release) {
if (name eq "" or email eq "" or address eq "" or address2 eq "" or city eq "" or state eq "" or zipcode eq "") {
stop ();
} else {
loadVariablesNum ("form.php", 0, "POST");
gotoAndStop (36);
}
}
<?php
$to = "lance@lancekorsun.com";
$msg = "$name\n\n";
$msg .= "$message\n\n";
mail($to, $subject, $msg, "From: My web site\nReply-To: $email\n");
?>
ok, everything works except one thing.... in the email, i only get the first line.... the name.... i believe this has to do with the code in the php, but i am not sure where.......i uploaded the files to make it easier to understand