?
Solved

Post Data to a PHP form by POST

Posted on 2011-03-07
1
Medium Priority
?
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 37

Accepted Solution

by:
CyanBlue earned 2000 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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. …
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 select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

765 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