Send object to PHP ----- help.....

View: New views
1 Messages — Rating Filter:   Alert me  

Send object to PHP ----- help.....

by chanchos :: Rate this Message:

| View Threaded | Show Only this Message

Hello, Im newbie with AMFPHP, but I'm having a lot of problems trying to send data from Flash to PHP, this is the code that I'm using:

ret = Object(); for (i in ratings) { rating = ratings[i]; rank = saveMotIds[i].rankContainer.held.rank; ret[i] = [int(rating), int(rank)];
} user = 123; var service:Service = new Service(gatewayUrl, null, 'Rating'); var pc:PendingCall = service.storeMotivations([user,ret]); pc.responder = new RelayResponder(this, "handleResult", "handleError");

In php the values are 'undefined'

What I'm doing wrong??

Hope that somebody could help me,

Best Regards