# Contact Form, what am I doing wrong?

**URL:** <https://forum.kirupa.com/t/contact-form-what-am-i-doing-wrong/168904>\
**Category:** flash\
**Created:** [November 11, 2005, 1:48am UTC](https://forum.kirupa.com/t/contact-form-what-am-i-doing-wrong/168904 "2005-11-11T01:48:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Polaris](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@Polaris](https://forum.kirupa.com/u/Polaris)\
**Post date:** [November 11, 2005, 1:48am UTC](https://forum.kirupa.com/t/contact-form-what-am-i-doing-wrong/168904/1 "2005-11-11T01:48:19Z")

</div>

Hi, I’m making a contact form on my site that I am building, I have never made a contact form before. So, I went around and looked at some tutorials, I have all the inputs text boxes; (name, subject, message, e-mail, etc.) and i have a send and clear buttons. On my send button i have,

on (release) {  
if (name eq “” or subject eq “” or message eq “” or email eq “”) {  
gotoAndPlay(3);  
} else {  
loadVariablesNum(“form.php”, 0, “POST”);  
gotoAndStop (2);  
}  
}

And the php file looks like this…

\<?

```
 $to = "cmferr2007@yahoo.com";
 $msg = "$name

```

";  
$msg .= "$message

";

mail($to, $subject, $msg, "From: My web site  
Reply-To: $email  
");

?\>

Ok, so where I have my email in the php file, is that where it is suppose to go so that when someone contacts me the message goes to that email?
