# My Password Check Loop Isn't Working

**URL:** <https://forum.kirupa.com/t/my-password-check-loop-isnt-working/93608>\
**Category:** Uncategorized\
**Created:** [November 2, 2003, 8:25pm UTC](https://forum.kirupa.com/t/my-password-check-loop-isnt-working/93608 "2003-11-02T20:25:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yeldarb](https://avatars.discourse-cdn.com/v4/letter/y/51bf81/32.png) [@Yeldarb](https://forum.kirupa.com/u/Yeldarb)\
**Post date:** [November 2, 2003, 8:25pm UTC](https://forum.kirupa.com/t/my-password-check-loop-isnt-working/93608/1 "2003-11-02T20:25:35Z")

</div>

can someone help me out? i’m trying to check the passwords and names and i want it to goto the next frame if they match, security isn’t really an issue so i’m not going to go through php and mySQL and stuff

here’s the code:

```auto
on (release) {
	i = 0;
	for (i<=_root.numberofnames; true; i++) {
		if (_root.name.text == _root.namevar+i && _root.password.text == _root.passwordvar+i) {
			_root.nextFrame();
		} else {
			_root.denied._visible = true;
		}
	}
}

```

thanks
