# Flash Registration Form with php and mysql integration using AS2

**URL:** https://forum.kirupa.com/t/flash-registration-form-with-php-and-mysql-integration-using-as2/330412
**Category:** flash
**Created:** [January 17, 2013, 12:45am UTC](https://forum.kirupa.com/t/flash-registration-form-with-php-and-mysql-integration-using-as2/330412 "2013-01-17T00:45:05Z")
**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: [January 17, 2013, 12:45am UTC](https://forum.kirupa.com/t/flash-registration-form-with-php-and-mysql-integration-using-as2/330412/1 "2013-01-17T00:45:05Z")

</div>

I created registration form layout in flash composed of first name, middle name,  
last name, date joined, last login date,country, state, city , email address(validation),  
password, comments section and uploading photos with 300 X 300 pixels. And I did a seperate page in flash for login form with name and password.How can I integrate my flash layout output in php then to my website database using phpmyadmin? So far my action script 2.0 didn’t work, i want to connect it not in my localhost database but in live server.

Here is my login AS2 script:  
\_root.user = undefined;  
\_root.pass = undefined;

\_root.logerr.text = “Login using this form”;

function loginUser(user, pass){  
login = new LoadVars();  
logged = new LoadVars();

```
login.user = user;
login.pass = pass;

_root.logerr.text = "Submitting Details...";

logged.onLoad = function(success){
	if(success){
		if(logged.err == "Login Successful"){
			_root.user = logged.user;
			_root.pass = logged.pass;
			
			_root.logger.text = logged.err;
			gotoAndStop(2);
		} else {
			_root.logerr.text = "Login Failed";
		}
	}
}
login.sendAndLoad("http://www.mysite.com/members/data/login.php",logged,"GET");

```

}

// Here is my frame 2 codes for login//

stop();

\_root.welcome.text = “Welcome” + \_root.user;

// Any help is appreciated, I’m just a newbie in action script, kindly help me guyz! thanks.
