# Problem with contact form What am I doing wrong!

**URL:** <https://forum.kirupa.com/t/problem-with-contact-form-what-am-i-doing-wrong/174333>\
**Category:** Uncategorized\
**Created:** [January 4, 2006, 8:00pm UTC](https://forum.kirupa.com/t/problem-with-contact-form-what-am-i-doing-wrong/174333 "2006-01-04T20:00:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wdv](https://avatars.discourse-cdn.com/v4/letter/w/9fc29f/32.png) [@wdv](https://forum.kirupa.com/u/wdv)\
**Post date:** [January 4, 2006, 8:00pm UTC](https://forum.kirupa.com/t/problem-with-contact-form-what-am-i-doing-wrong/174333/1 "2006-01-04T20:00:41Z")

</div>

I had bought this flash template [http://www.issdecor.com](http://www.issdecor.com)  
I can get the contact form to work!!!  
In the .fla what I did was name the MC to form and the variables are  
“nam” “email” “company” and “messag” and the submit buttons in the form MC has this script

on (release) {  
form.loadVariables(“form.php”, “POST”);  
}

the php code page for form.php is this:  
\<?

$to = "sales@issdecor.com";  
$msg = "$nam

";  
$msg .= "$company

";  
$msg .= "$email

";  
$msg .= "$messag

";

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

?\>

what am I doing worng?
