# Help

**URL:** https://forum.kirupa.com/t/help/120035
**Category:** Uncategorized
**Created:** [August 20, 2004, 2:21am UTC](https://forum.kirupa.com/t/help/120035 "2004-08-20T02:21:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hotwireddriveby](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hotwireddriveby](https://forum.kirupa.com/u/hotwireddriveby)
#### Post date: [August 20, 2004, 2:21am UTC](https://forum.kirupa.com/t/help/120035/1 "2004-08-20T02:21:45Z")

</div>

hey. im trying to do this flash based email as seen [here](http://www.kirupa.com/developer/actionscript/flash_php_email.htm) 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](mailto: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\>

---

<div class="post-metadata">

### Author: ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)
#### Post date: [August 20, 2004, 6:31am UTC](https://forum.kirupa.com/t/help/120035/2 "2004-08-20T06:31:39Z")

</div>

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

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

```

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