Flash with PHP... Help?!

Hello all,

Thanks for helping in advance :thumb2:

Ok… I’m pretty new to Flash and just became a member of the Kirupa forums… and I need help :stare:

I needed to create a form in flash and saw Senocular’s tutorial “Flash Based Email Form Using PHP” BUT! when I tried it, the results of my form never got emailed to me. I searched around the forums and searched around the web and I can’t seem to get it to work. It doesn’t look like anyone else is having this problem so I’m thinking it has something to do with my code.

Here it is (sorry it’s not all fancy and colorful:D):

<?php
$sendTo = "email@email.com";
$subject = "YAC Online Application Form";

[COLOR="Orange"]// variables from Flash Form[/COLOR]
$name = $_POST["name"];
$address1 = $_POST["address1"];
$address2 = $_POST["address2"];
$phone = $_POST["phone"];
$fax = $_POST["fax"];
$email = $_POST["email"];
$age = $_POST["age"];
$instrument = $_POST["instrument"];
$instructor = $_POST["instructor"];
$school = $_POST["school"];
$goal_text = $_POST["goal_text"];
$selection1 = $_POST["composer1"];
$composer1 = $_POST["name"];
$selection2 = $_POST["selection2"];
$composer2 = $_POST["composer2"];
$achieve_text = $_POST["achieve_text"];

[COLOR="Orange"]// Content-type headers for the actual mail[/COLOR]
$headers  = "MIME-Version: 1.0
";
$headers .= "Content-type: text/html; charset=iso-8859-1
";
$headers .= "From: $name <$email> 
";
$headers .= "Reply-To: $email 
";
$headers .= "Return-Path: $email";

[COLOR="Orange"]// the message incorporating all the variables[/COLOR]
$body = "Applicants name: $name<br>";
$body .= "Street Address: $address1<br>";
$body .= "City, State, & Zip Code: $address2<br>";
$body .= "Phone Number: $phone<br>";
$body .= "Fax Number: $fax<br>";
$body .= "Email Address: $email<br>";
$body .= "Age: $age<br>";
$body .= "Instrument Played: $instrument<br>";
$body .= "Instructed By: $instructor<br>";
$body .= "School Attending: $school<br>";
$body .= "Goal In The Music Field: $goal_text<br>";
$body .= "1st Audition Selection: $selection1<br>";
$body .= "1st Composed By: $composer1<br>"; 
$body .= "2nd Audition Selection: $selection2<br>";
$body .= "2nd Composed By: $composer2<br>";
$body .= "Other Musical Achievements: $achieve_text<br>";

[COLOR="Orange"]// send the email[/COLOR]
mail($sendTo, $subject, $body, $headers);
?>

I got the HTML code for the header section from this forum discussion.

Also is this the right code to put on the Submit button (it’s a movieclip):

on (release) {
	loadVariables("email.php", "POST");
}

If anyone thinks they can help I’d really appreciate it. I need to get this stupid website up today :worried:

Thanks in advance!