# My Password Check Loop Isn't Working

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 2, 2003, 10:04pm UTC](https://forum.kirupa.com/t/my-password-check-loop-isnt-working/34462/2 "2003-11-02T22:04:04Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12082](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12082)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 2, 2003, 10:43pm UTC](https://forum.kirupa.com/t/my-password-check-loop-isnt-working/34462/3 "2003-11-02T22:43:42Z")

</div>

thanks :thumb:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 2, 2003, 10:50pm UTC](https://forum.kirupa.com/t/my-password-check-loop-isnt-working/34462/4 "2003-11-02T22:50:00Z")

</div>

Welcome. :beam:
