Solved

Post Data to a PHP form by POST

Posted on 2011-03-07
1
268 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

773 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