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.