I have a problem with passing an array variable from Flash (AS2) to PHP. In a script action, I have several arrays defined this way
output["px1"] output["px2"] output["px3"]
and then I use the following code to pass variables to a php file
output.sendAndLoad("orders/print2cart.php",output,"POST");
I want to know how to get data from an array in PHP. I tried using $_POST['px1'] , $_POST['output']['px1'] , $_POST['output'] , but I can not get any data. Any ideas on what I can change to get the desired result?
Thanks!
EDIT: I noticed that one of the other variables in output (output.username) is also not sent to PHP, despite the fact that it appears in flash. Using the following code for a flash warning, and it correctly displays all the variables. getURL ("javascript: alert ('Print Stamp:" + output.PrintStamp + "User:" + output.username "')");
EDIT: It seems that when I send a fairly long array (or string, for that matter), none of the other fields associated with the LoadVars variable are sent. I searched for it for limitations, and it says that the limits of the text are ~ 63000. Still not sure if this is a problem.
Farax source share