Page 1 of 1

Connecting a Flash menu with a PHP backend

Posted: Wed Apr 13, 2005 9:40 pm
by Trenchant
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?

Posted: Thu Apr 14, 2005 1:43 am
by n00b Saibot
Yeah! LoadVars is the only thing that can help. There is also XMLSocket/XML methods but they are just too much nuisance IMO. there are methods both to send an recieve in the LoadVars object. I'll post an example if you say so. You can also Google for it ;)

Posted: Thu Apr 14, 2005 8:03 am
by Trenchant
That would be great if you could post an example.

I use to have an example that worked partially but it was on my server which was sent off to get repaired.

Posted: Thu Apr 14, 2005 9:14 am
by n00b Saibot
A simple two-liner ;)

Code: Select all

var LV = new LoadVars(); //this creates object of LoadVars
LV.sendandload(&quote;www.myserver.com/backend.php&quote;,LV); //sendandload(url,targetObject2LoadVariables2ї,method])
HTH, Tell me if you want a detailed explanation/working example... ;)

Posted: Thu Apr 14, 2005 9:48 am
by John Cartwright
I wouldn't mind one.

Posted: Thu Apr 14, 2005 10:10 am
by Burrito
Jcart wrote:I wouldn't mind one.
nor would I 8O

Posted: Thu Apr 14, 2005 4:51 pm
by Trenchant
Better yet since there seems to be a demand for function like that. Would anyone with some extra time mind writing a quick tutorial for the tutorials section on that?

If not hey its just a wild idea.

Posted: Tue Apr 19, 2005 2:58 am
by n00b Saibot
I'm really sorry guyz to keep ya all waiting. My BB conn just went phat, it wouldn't let me log on :cry: and here i was dying to connect to forum :x Ok now it seems sorted for now and i will definitely post a tutorial on this ASAP (as soon as i figure out how to write one, that is :? ).