# Login code

**URL:** <https://forum.kirupa.com/t/login-code/211268>\
**Category:** Uncategorized\
**Created:** [December 29, 2006, 11:42am UTC](https://forum.kirupa.com/t/login-code/211268 "2006-12-29T11:42:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellohenric](https://avatars.discourse-cdn.com/v4/letter/h/779978/32.png) [@hellohenric](https://forum.kirupa.com/u/hellohenric)\
**Post date:** [December 29, 2006, 11:42am UTC](https://forum.kirupa.com/t/login-code/211268/1 "2006-12-29T11:42:44Z")

</div>

Hi,

Here are a code for login:

on (release) {  
if(un == ‘test’ && pw == ‘test’) {  
gotoAndStop(“correct”)  
} else {  
gotoAndStop(“incorrect”)  
}  
}

But something must be wrong, I write the correct username and password in the textboxes and then click login, but I come to incorrect frame… have I missed something here?

Cheers  
HH
