[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

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

Hi
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...

<?php

  $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.
0
eppyfone
Asked:
eppyfone
  • 3
  • 2
2 Solutions
 
ludofulopCommented:
you are running the flash and the script on the same domain?
can be a security issue in IE...
0
 
eppyfoneAuthor Commented:
Hi ..
Yes they are both under the same domain.
E.
0
 
ludofulopCommented:
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)


0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Ionut A. TudorPHP ProgrammerCommented:
put this in mypage.php :
<?php
print_r($_POST);
?>
 
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
0
 
eppyfoneAuthor Commented:
ludo - The php script is being called, thanks.
al3c - the $_POST is empty in IE, not in FF / Safari, thanks.
I'm still investigating.
e
0
 
eppyfoneAuthor Commented:
SOLUTION
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 ..
Thanks
E.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now