# Contact form not working - of course

**URL:** <https://forum.kirupa.com/t/contact-form-not-working-of-course/207981>\
**Category:** flash\
**Created:** [November 23, 2006, 11:33am UTC](https://forum.kirupa.com/t/contact-form-not-working-of-course/207981 "2006-11-23T11:33:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![o111](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/o111/32/2123_2.png) [@o111](https://forum.kirupa.com/u/o111)\
**Post date:** [November 23, 2006, 11:33am UTC](https://forum.kirupa.com/t/contact-form-not-working-of-course/207981/1 "2006-11-23T11:33:34Z")

</div>

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:

```auto
on (release) {
    loadVariables("mail.php", 0, "POST");
}

```

My php script looks like this:

```auto
<?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
