Solved

Variables from flash to php.

Posted on 2006-11-23
1
161 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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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 use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

772 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

14 Experts available now in Live!

Get 1:1 Help Now