Solved

Variables from flash to php.

Posted on 2006-11-23
1
191 Views
Last Modified: 2010-04-03
I want to send variables out of a flash file and use them in a php page.

The actionscript currently stands as.....

varsToSend = new LoadVars();
      varsToSend.table_name = "tblPilot";
      varsToSend.Response="it_" + item + ":res_" + resp + ":rt_" + rt + ":sq_" + seq;
      varsToSend.confirmation_page = "http://test-extranet.edfac.unimelb.edu.au/arc_test_dev/Problem%20Solving%20Items/index.php";
      varsToSend.send("ItemProc.php","_self","POST");



and the PHP is

echo $_POST['Item_0026_Response'];


it does not print the variable as expected. Can anyone tell me why?
0
Comment
Question by:ARC_UM
1 Comment
 
LVL 13

Accepted Solution

by:
FLAASHER earned 250 total points
ID: 18006137
here is ur problem :


in PHP try to print this :




<?
echo $_POST['confirmation_page'];
?>


it will work fine :)



this becuse $_POST['Item_0026_Response'] come  from flash as vriable BUT $_POST['Item_0026_Response'] have undefinded vribales in flash like seq, resp, item and rt



dfine this vriables frist and try again



FLAASHER
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

Suggested Solutions

Title # Comments Views Activity
Flash Player White Screen Facebook 5 789
Google Chrome - Where is "Enable Resource Tracking" 2 12,413
How to block online streaming via TMG2010 ? 2 143
Running Mp4 or Flash Video 1 139
This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

713 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