I have a PHP contact form that used to work but now is giving me nothign but problems.
mail.php
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$subject = $_POST['subject'];
$to="sintax321@hotmail.com";
$msg="$name
";
$msg.="$email
";
$msg.="$message
";
echo "<pre>"; print_r($_POST); echo "</pre>";
mail($to, $subject, $msg, "From: Contact
Reply-To: $email
X-main: PHP/");
?>
Flash send function from contact.swf
[AS]on (release) {
if (subject eq “” or message eq “” or email eq “” or name eq “”) {
stop();
} else {
lineAdapt();
loadVariablesNum(“mail.php”, 0, “POST”);
sent.gotoAndPlay(2);
subject="";
message="";
name="";
email="";
}
}[/AS]
I put mail.php in both the root folder and the folder contact.swf so it should find it in one of the locations but it fails to work. Any one got any ideas?