Quote:
Originally Posted by xxneon
just an FYI.. you can not send an array object as it is to a php script .. you need to have all your values in one long string ..
|
Ah, Ok - my fault - I'm coming back to Flash after about a year's break in PHP!
Quote:
Originally Posted by xxneon
and then in your php you will have a variable passed called record1 .. that you will have to split the string .. so you can get each part of your record that you want to save..
|
Not so.
If you pass the string like this:
Code:
"data[0][first_name]=Dave&data[0][last_name]=Stewart&data[1][first_name]=Joe&data[1][last_name]=Bloggs"
PHP should read the string as a native multidimensional array:
Code:
Array
(
[data] => Array
(
[0] => Array
(
[first_name] => Dave
[last_name] => Stewart
)
[1] => Array
(
[first_name] => Joe
[last_name] => Bloggs
)
)
)
At least it does with HTML - you'll have to check with the Flash thing, but I don't see how the PHP would receive it any differently anyway. You may have to use GET not POST though (or you may not. I haven't tested it)