IE7 not showing $_POST values using LoadVars in Action Script 2

Posted on 2009-02-16
Last Modified: 2012-05-06
I need to pass some information between ActionScript 2 and PHP so I'm using the LoadVars and send methods in ActionScript as follows...

var oEnvelope:LoadVars = new LoadVars();
oEnvelope.Variable1 = 1;
oEnvelope.Variable2 = 0;
oEnvelope.send( 'mypage.php', 'newwin', 'POST' );

My mypage.php file contains the following...


  $Variable1 = $_POST['Variable1'];
  $Variable2 = $_POST['Variable2'];
  echo "Variable1 : $Variable1" ;
  echo "<br/>";
  echo "Variable2 : $Variable2" ;


Now all works well in FF3 and Safari, however although IE7 shows the page .. it is not showing any values from the $_POST super global!

Doesn't seem to be a caching issue as it has been tried on a machine which has had no exposure to the site in question and the results are the same, i.e. not working.

Running on Apache 1.3 ( yes I have requested an upgrade to 2 ), and PHP-5.

Any comments appreciated, thanks.
Question by:eppyfone
    LVL 15

    Expert Comment

    you are running the flash and the script on the same domain?
    can be a security issue in IE...

    Author Comment

    Hi ..
    Yes they are both under the same domain.
    LVL 15

    Accepted Solution

    try to put a write to a log file in your script, to find out, if it is accessed, or not - put  file_put_contents('log.txt', '1'); to your mypage.php (be sure that permissions to create file are set correctly)

    LVL 14

    Assisted Solution

    by:Ionut A. Tudor
    put this in mypage.php :
    Do you see the parameters Variable1 & Variable2 in the result array ? If not then this is not a php problem and you should ask this question in an appropiate EE category like ActionScript where is a better chance to find the answer. Good luck

    Author Comment

    ludo - The php script is being called, thanks.
    al3c - the $_POST is empty in IE, not in FF / Safari, thanks.
    I'm still investigating.

    Author Comment

    Because the initial call from the Flash movie was on a page within a frameset ......
    IE couldn't cope although FF and Safari could.
    Points split for your speedy responses ..

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
    Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    761 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

    8 Experts available now in Live!

    Get 1:1 Help Now