# Flash email form

**URL:** https://forum.kirupa.com/t/flash-email-form/207784
**Category:** Uncategorized
**Created:** [November 21, 2006, 2:39pm UTC](https://forum.kirupa.com/t/flash-email-form/207784 "2006-11-21T14:39:26Z")
**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: [November 21, 2006, 2:39pm UTC](https://forum.kirupa.com/t/flash-email-form/207784/1 "2006-11-21T14:39:26Z")

</div>

I read \*[this](http://www.kirupa.com/developer/actionscript/flash_php_email.htm)\*tutorial by senocular, and it should be working great - but here’s the deal

When working on the “send” button, it says:

> [@senocular](#):
>
> [SIZE=2][SIZE=2][COLOR=black]It’s on this button that the loadVariables script will be added. That script is as follows:  
> form.loadVariables(“email.php”, “POST”);[/COLOR][/SIZE][/SIZE]

But I cant get that right. Because I get this error message when testing:

> [@error output](#):
>
> Statement must appear within on/onClipEvent handler  
> form.loadVariables(“email.php”, “POST”);

So obviously the code sen wrote to be on the button is not enough.  
From what I got, I need to have some sort of “onClipEvent” but im not sure what.

If you could help me out, that would be great!  
-peace:)
