My advice is to try use remoting so you can pass value object, this is how you can pass whole object like "user" with all data you need. You can use
Remote Object or HTTPService I hope that helped. On 5 ožu, 18:22, Luiz Barros <[email protected]> wrote: > In Flex ! > > private function doEnviar (): void ( > var list: Array = new Array () > List [0] = '7157 ' > List [1] = '7160 ' > / / I created the array list and assign values to it > var urlString: String = "http://192.168.0.4/uniflex/teste/ > relatorio/ > exibir.php "; > var request: URLRequest = new URLRequest (urlString); > var variables: URLVariables URLVariables = new (); > variables.var1 = 'January', / / passing months as a string > variables.var2 = 'Joaquim de Oliveira e Silva', / / passing name > as string > variables.var3 = List / / passing as Array > request.data = variables; > request.method = URLRequestMethod.POST; > navigateToURL (request, "_blank"); > ) > > <mx:Button label="Enviar Items Impressão" click="doEnviar()"/> > Exibir.php > <? > if (isset ($ HTTP_POST_VARS [ "var3"])) ( > if (is_array ($ HTTP_POST_VARS [ "var3"])) ( > $ var3 = $ HTTP_POST_VARS [ "var3"]; > ) Else ( > $ var3 = array ($ HTTP_POST_VARS [ "var3"]); > ) > $ relproducaoSel_Total = count ($ var3); > > $ var1 = $ _POST [ "var1"]; > $ var2 = $ HTTP_POST_VARS [ "var2"]; > > ) > > ?> > > The problem I'm finding is: > I can not pass var3 of flex to PHP as Array > > In PHP it even takes the value of var3 but only the last item > He is not identifying like array -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

