Solved

Post Data to a PHP form by POST

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
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…
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 load their YouTube profile onto Flash Media Live Encoder.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now