Hi Steve. As I said earlier about using e4x I'm reluctant to use amfphp 1. 
because I already have eveything set up using regular php code and 2. I. 
struggle to find examples of how to use such methods compared to the regular 
methods of using traditional php.

Would you happen to know if it is possible to send a copy of the array 
collection that I'm receiving somehow? I basically want it so that when the 
user logs in it gets the data that we've been discussing throughout this topic 
and sets it as an array collection in flex and then sends this whole array to 
the userlinks table I have in my mysql so each user basically has a whole copy 
of the links table to themselves and can edit this by setting favourites etc. 
How would you go about this judging by the code that I've got here (the code 
that Robert provided). I'd prefer to stick to php to upload the array as this 
project is for my uni course in which I've used php throughout but I suppose I 
could use amfphp to upload the arrays?

Cheers for the advice so far.

--- In [email protected], "valdhor" <valdhorli...@...> wrote:
>
> I am a little late to this party but I would have to recommend using AMF to 
> pass your data back and forth. this allows you to pass objects and arrays of 
> objects both ways. No need to convert objects to XML and back to objects - 
> they are all just objects.
> 
> When the data comes in you can use ArrayUtil.toArray on the result and create 
> an ArrayCollection from this array. An empty result will have created a zero 
> length array and you can trap on that.
> 
> I use WebORB for PHP (Community Edition which is free) as the PHP middleware 
> and have never had a problem. I have posted many examples on this forum of 
> how to pass data back and forth. If you need any further help, I am but a 
> post away ;-}
> 
> I started out in my Flex learning going the XML route but soon got very 
> confused, especially with trying to send arrays of data TO the server. As 
> soon as I figured out how to do it with AMF I converted everything and now 
> will not go back.
> 
> 
> Best Regards
> 
> 
> 
> Steve
>


Reply via email to