Help

hey. im trying to do this flash based email as seen here in the tutorial.

i have a problem. if gives me the error as shown

Error Scene=Scene 1, layer=Form, frame=1:Line 1: Statement must appear within on handler
form.loadVariables(“emailnaaman.php”, “POST”);
Total ActionScript Errors: 1 Reported Errors: 1

and when i click on the button to ake it send, it doesnt go to the next frame.

please help! im a rookie, and i need this for my band! please help

ive attached the .fla along with this to see if you can help.

also. this is the coding for the PHP page

<style type=“text/css”>
<!–
body {
background-color: #000000;
}
–>
</style>
<title>Contact Naaman</title><div align=“center”></div>
<?php
$sendTo = “Naaman@atomicmatches.com”;
$subject = “Contact from website”;
$headers = "From: " . $_POST[“name”];
$headers .= “<” . $_POST[“email”] . ">
";
$headers .= "Reply-To: " . $_POST[“email”];
$message = $_POST[“message”];
mail($sendTo, $subject, $message, $headers);
?>
<div align=“center”></div>

Like the error says, the code on your button needs an “on handler”. Change the code on your “Send-button” in this

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

scotty(-:
btw next time use a better title;)