I really have scanned the Internet for answers but found nothing to help me. You see, I would like to make a login page that retrieves the username and password from a text file. All login information is stored in an array, which looks like this:
& Users =::: Name1 | username1 | passwords1 |
::: Name2 | username2 | passwords2 |
::: Name3 | username3 | passwords3 |
I want to find in my arrayif the user is authorized. If it is authorized, I would like to send the name (Name1, for example) into a text box. How do I do?Please help me, it would mean a lot to me!
you know how to load your textfile and access Users?
Yes, I do. The two big questions are:
Excuse me if I made myself a bit vague ... I was / is desperate :-)
Thanks for your help kglad!
you can use the following function:
var a:Array = Users.split(":::").join("").split(" ").join("").split("|");