# Password protection

**URL:** <https://forum.kirupa.com/t/password-protection/28445>\
**Category:** Uncategorized\
**Created:** [August 13, 2003, 8:38pm UTC](https://forum.kirupa.com/t/password-protection/28445 "2003-08-13T20:38:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerga](https://avatars.discourse-cdn.com/v4/letter/z/d6d6ee/32.png) [@zerga](https://forum.kirupa.com/u/zerga)\
**Post date:** [August 13, 2003, 8:38pm UTC](https://forum.kirupa.com/t/password-protection/28445/1 "2003-08-13T20:38:16Z")

</div>

I’ve read through almost every single topic on the kirupa forums about password protection. Many seem to leave open enders and many use mysql. I cut bits and peices and formed my own script. In my .fla file I have an input field, a result field and a submit button. I have made a script in which it checks for variables sent by the .swf and then returns a result. The result is then read by flash to see if it is correct. The return and input is all correct and working. However I can’t seem to make it go to a specific frame. I have a If (result == “yes”) go to and play frame 2. This doesn’t work. I can’t get any of my if operators to work. I was wondering if anyone can help me with this problem. Mysql is not an option for me since I don’t have a host that supports it. I have attached my .fla and php script. Thanks in advance.

---

<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:** [August 13, 2003, 9:13pm UTC](https://forum.kirupa.com/t/password-protection/28445/2 "2003-08-13T21:13:04Z")

</div>

two things:

1. replace print “result=yes”; with print “&result=yes”; for yes and no

2. LoadVariables is asynchronous - i.e. depending on your server you can be waiting for a response. Chances are you’re evaluating the if statement before you receive a reply from the server - I’ve added a basic loop that wait for a response or time out after a predetermined time.
