Connecting a Flash menu with a PHP backend

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Trenchant
Forum Contributor
Posts: 291
Joined: Mon Nov 29, 2004 6:04 pm
Location: Web Dummy IS

Connecting a Flash menu with a PHP backend

Post 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?
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post 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 ;)
User avatar
Trenchant
Forum Contributor
Posts: 291
Joined: Mon Nov 29, 2004 6:04 pm
Location: Web Dummy IS

Post 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.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post 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... ;)
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

I wouldn't mind one.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Jcart wrote:I wouldn't mind one.
nor would I 8O
User avatar
Trenchant
Forum Contributor
Posts: 291
Joined: Mon Nov 29, 2004 6:04 pm
Location: Web Dummy IS

Post 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.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post 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 :? ).
Post Reply