Solved

Post Data to a PHP form by POST

Posted on 2011-03-07
1
270 Views
Last Modified: 2012-05-11
Is it possible using Flash ActionScript to post to a PHP page using POST?

Ive got a result from a game and Id like to post it to a database, the PHP page already exists, however Id like it to post via POST (not GET) to the page and then read the response, if the response is Ok, then do nothing, but if it gives anything else then I can process that in some code.

Does anyone have any example code of posting a couple of variables by POST to a page, waiting for a response then reading the response.

Thank you
0
Comment
Question by:tonelm54
1 Comment
 
LVL 37

Accepted Solution

by:
CyanBlue earned 500 total points
ID: 35059023
You use URLLoader to do that in AS3 and LoadVars in AS2...  Check out these pages for more information...
   http://rickydoesit.com/actionscript-3/how-to-connect-to-php-with-actionscript-3-and-post-variables-to-php/
   http://flash-creations.com/notes/servercomm_loadvars.php

CyanBlue
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question