Nov
7
How to send information to PHP from Flex
Posted by admin
I had a bit of trouble figuring out what Flex was doing when i sent a request to a page.
This is what i figured out.
1 2 3 4 5 6 7 8 | <mx:HTTPService id="userRequest" url="####" useProxy="false" method="POST"> <mx:request xmlns=""> <array>{rating}</array> <type>{type}</type> <appl>0000</appl> <rand>{rand}</rand> </mx:request> </mx:HTTPService> |
userRequest.send();
The first block of code sends to whatever page you choose:
?array={rating}&type={type}&appl={0000}&rand={rand}The second actually calls the function. So for instance I put it at the end of the project, so it would complete and send the results to a php page to be processed.
That’s it! Its sends it super quick to the page, and your good to go!
Let me know if it all makes sense!
Leave a Reply