# Variable - very easy but

**URL:** <https://forum.kirupa.com/t/variable-very-easy-but/152162>\
**Category:** Uncategorized\
**Created:** [June 21, 2005, 7:26pm UTC](https://forum.kirupa.com/t/variable-very-easy-but/152162 "2005-06-21T19:26:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onetwo](https://avatars.discourse-cdn.com/v4/letter/o/3d9bf3/32.png) [@onetwo](https://forum.kirupa.com/u/onetwo)\
**Post date:** [June 21, 2005, 7:26pm UTC](https://forum.kirupa.com/t/variable-very-easy-but/152162/1 "2005-06-21T19:26:23Z")

</div>

Hi,

I am trying to set-up a log on functionality ie. username and password.

To verify username + password I retrieve data from a txt file containing these information.

Let’s assume username inserted is: mr\_one  
The username is inserted in the input textbox: textbox1 (password in textbox2)

In my txt file I have: mr\_one=pssw\_2  
That is, this user has username: mr\_one and password: pssw\_2

I find the username inserted, in the txt file and checks if the corresponding password is the one inserted by the user in textbox2  
Password in the txt file is retrieved as: this.mr\_one ;

No problem if I do not write this as a variable.

But how do I make username input variable, that is, more than one user can insert a username and password. Then obviously I can not write: this.mr\_one as textbox1 now not always is mr\_one depending on what username has been inserted.

I tried: txt\_pssw = “this.” + textbox1  
-but it is then handled as text  
trace(“this.” + textbox1) just gives me the result: “this.textbox1” and not the result from the txt file.

Any suggestions ? I believe this is quite straight forward but…
