# AS2 Users Profile View

**URL:** <https://forum.kirupa.com/t/as2-users-profile-view/330905>\
**Category:** flash\
**Created:** [April 5, 2013, 2:14am UTC](https://forum.kirupa.com/t/as2-users-profile-view/330905 "2013-04-05T02:14:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bracelett](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@bracelett](https://forum.kirupa.com/u/bracelett)\
**Post date:** [April 5, 2013, 2:14am UTC](https://forum.kirupa.com/t/as2-users-profile-view/330905/1 "2013-04-05T02:14:27Z")

</div>

So far Im successfully connected to my database and Im successfully registered,  
but I want after pressing the " Register" button the users will preview his/her  
profile, If anyone knows how to do it in AS2 kindly help please.  
Here is my AS2 so far.

```auto

username = "";pass="";
fname = "";
lname ="";
country ="";

usernew.restrict = "a-zA-Z0-9";
passone.restrict = "a-zA-Z0-9";
passtwo.restrict = "a-zA-Z0-9";
Selection.setFocus(usernew);

firstname.restrict = "a-zA-Z0-9";
lastname.restrict = "a-zA-Z0-9";
regcountry.restrict = "a-zA-Z0-9";

stop()

```

And here is my "Register"button AS2

```auto

on (release) {
     if(username.length >= 6 && pass.length >= 6){
		loadVariablesNum("register.php", 0, "POST");
	 }else{
		_root.words = "Username must have between 6 and 12 characters.";
	}
}

```
