dcnyc
August 6, 2003, 8:56pm
1
I am using a PHP mail form and when I try it, I do receive the e-mail but with nothing in there???
can anyone help? here is the code:
clear button:
on (release) {
name = “”;
subject="";
message="";
email="";
}
send button:
on (release) {
if (name eq “” or subject eq “” or message eq “” or email eq “”) {
stop ();
} else {
loadVariablesNum (“form.php”, 0, “POST”);
gotoAndStop (2);
}
}
php form:
<?PHP
$to = "you@domain.com ";
$msg = "$name
";
$msg .= "$message
";
mail($to, $subject, $msg, "From: you@domain.com
Reply-To: $email
");
?>
system
August 6, 2003, 8:57pm
2
Can you strip the code out of your flash file?
Its probally sending those vars from either the root or inside a movie clip and your not linking them properly.
Well, thats my say
system
August 7, 2003, 12:26am
3
trace you variables in flash do they show?
system
August 7, 2003, 3:37am
4
also try doing this for each variable…
$subject = $_POST['subject'];
$name = $_POST['name'];
//...etc...etc...etc...
Your host may have superglobals turned off and the PHP script isn’t catching the vars from the Flash file… the code above will fix it…