# Login form in Flash

**URL:** <https://forum.kirupa.com/t/login-form-in-flash/267541>\
**Category:** flash\
**Created:** [August 2, 2008, 1:33pm UTC](https://forum.kirupa.com/t/login-form-in-flash/267541 "2008-08-02T13:33:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chinmaytamhaney](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@chinmaytamhaney](https://forum.kirupa.com/u/chinmaytamhaney)\
**Post date:** [August 2, 2008, 1:33pm UTC](https://forum.kirupa.com/t/login-form-in-flash/267541/1 "2008-08-02T13:33:47Z")

</div>

I have a simple login form in Flash for a website. All users login using the same password. The current actionscript which I am using is as follows.

on (keyPress “\<Enter\>”) {

```
if (_root.txtPass.text == "agentx") {
    
    gotoAndPlay("Scene 3", 1);
}

```

}

however it is very easy to extract the password by decompiling the swf.  
Can you suggest me an alternative? Can somebody direct me to a Flash - PHP (but no Sql) validation tutorial?

Thanks…
