# Button help - Urgent!

**URL:** https://forum.kirupa.com/t/button-help-urgent/315176
**Category:** flash
**Created:** [October 19, 2010, 3:55pm UTC](https://forum.kirupa.com/t/button-help-urgent/315176 "2010-10-19T15:55:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gusstav](https://avatars.discourse-cdn.com/v4/letter/g/4491bb/32.png) [@gusstav](https://forum.kirupa.com/u/gusstav)
#### Post date: [October 19, 2010, 3:55pm UTC](https://forum.kirupa.com/t/button-help-urgent/315176/1 "2010-10-19T15:55:09Z")

</div>

If someone can help i would be most grateful!]

Im trying to script a button which looks to see if a password is correct and if so advances to the next page and sends data from text fields via php to an email.

I can get the advance to the next frame to work however it wont send the data to php.

Here is the code…

stop();

var myPassword:String = ‘password’;  
true\_btn.onRelease = function() {  
if (password\_txt.text == myPassword) {  
gotoAndPlay(49);  
form.loadVariables(“email.php”, “POST”);

```
} else {
    gotoAndStop(48);
    }
}

```

Any ideas where i am going wrong?
