I'm creating a flash menu bar with a login page on it. If a user logs in then the script displays processing until the information is received. If they entered the correct information the login form is replaced with there account information.
I'm running into a problem while sending and receiving the data. Does anyone know how I can send and receive a lumpsome of information? Do I use loadvars() and if so how? I need to send the users username and password from the login script to my backend php login process. I need some of their account information to be sent back if successfull(I already know how to do the php stuff).
I just can't figure out how to connect the two. Any suggestions?
Connecting a Flash menu with a PHP backend
Moderator: General Moderators
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
A simple two-liner
HTH, Tell me if you want a detailed explanation/working example... 
Code: Select all
var LV = new LoadVars(); //this creates object of LoadVars
LV.sendandload("e;www.myserver.com/backend.php"e;,LV); //sendandload(url,targetObject2LoadVariables2ї,method])- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact: