My contact form isnt working like everyone elses, I know my site supports php so thats not a problem. Im sure it has something to do with my code, but I dont know what, you tell me:)
I have a “name”, “email”, and “message” input text fields with the same variable names.
I also have a “send” button which contains this code:
on (release) {
loadVariables("mail.php", 0, "POST");
}
My php script looks like this:
<?php
$to = "oyvind@medieklassen.com";
$subject = "Website reply";
$headers = "From: " . $_POST["email"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];
$message .= "This message has been sent from your Contact Form
";
$message .= "Name: " . $_POST["name"] . "
";
$message .= "Email: " . $_POST["email"] . "
";
$message .= "Message: " . $_POST["message"] . "
";
mail($to, $subject, $message, $headers);
?>
Please help me out:)
-peace