# Login keeping username

**URL:** https://forum.kirupa.com/t/login-keeping-username/292905
**Category:** Uncategorized
**Created:** [July 20, 2009, 7:35pm UTC](https://forum.kirupa.com/t/login-keeping-username/292905 "2009-07-20T19:35:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![KillinSprE](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@KillinSprE](https://forum.kirupa.com/u/KillinSprE)
#### Post date: [July 20, 2009, 7:35pm UTC](https://forum.kirupa.com/t/login-keeping-username/292905/1 "2009-07-20T19:35:10Z")

</div>

I’ve used the newlogin example and I’m trying to get it to say Welcome “username” instead of saying Stuff. I need it to hold onto the variable username from one frame and keep it thru-out the swf. EG once sucessfully logged in it will send u to a frame that says Welcome “whatever-your-username-is” and then also send that username for PHP data grabbing from MYSQL ([http://somesite.com/userinfo.php?username=username-variable](http://somesite.com/userinfo.php?username=username-variable))

Step 1 - User Signs in correctly  
 ![](http://coffeescreations.net/Image1.jpg)  
got this working fine. it takes the usrename and password and checks against the MYSQL database

Step 2 - User is greeted  
 ![](http://coffeescreations.net/Image2.jpg)  
this would be a frame called something like “loggedin” I need it to carry the username from the login in (in this case “guest”) as a variable to this step. I have tried \_global but failed.

Step 3 - Gather addition info from MYSQL  
 ![](http://coffeescreations.net/Image3.jpg)  
I would need to do something like “myData.load(“datagather.php?username=” + \_global.username)” in the action script so that it would basically load the url [http://somesite.com/datagather.php?username=guest](http://somesite.com/datagather.php?username=guest)

any help would be very appreciated
