# Contact form problem

**URL:** https://forum.kirupa.com/t/contact-form-problem/199517
**Category:** Uncategorized
**Created:** [September 3, 2006, 4:17pm UTC](https://forum.kirupa.com/t/contact-form-problem/199517 "2006-09-03T16:17:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![o111](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/o111/32/2123_2.png) [@o111](https://forum.kirupa.com/u/o111)
#### Post date: [September 3, 2006, 4:17pm UTC](https://forum.kirupa.com/t/contact-form-problem/199517/1 "2006-09-03T16:17:14Z")

</div>

I followed this tutorial: [http://www.kirupa.com/developer/actionscript/flash\_php\_email.htm](http://www.kirupa.com/developer/actionscript/flash_php_email.htm)  
and ran into some problems.

On the “send” button I have this code:

```auto
form.loadVariables("email.php", "POST");

onClipEvent(data){

   _root.nextFrame();

}

```

But something is wrong. First of all, the button doesn’t work and when I test my movie… this output message comes:

> [@output](#):
>
> **Error** Scene=Scene 1, layer=button, frame=1:Line 1: Statement must appear within on/onClipEvent handler  
> form.loadVariables(“email.php”, “POST”);

Can you tell me what is wrong?

peace!
