Solved

Post Data to a PHP form by POST

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
flash cs6 4 347
Flash being Disabled - help! 20 343
adobe flash plugin has crashed while listening to pandora 2 75
Flash ActionScript 6 57
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.

829 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