NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Recieving POST data from Flash object. No work!!!


Joined: 08 Jul 2005
Posts: 1
Reply with quote
I know that the similar problem had been raised and solved already... anyway, here is my problem:
I've got a page with the login module made in FlashMX... Name and password entered into the .swf then being passed back out of it using ActionScript just like this (sorry for that mixup):

Code:
lvOut = new LoadVars();
lvOut.login_info=user_name+"&"+user_pwd_enc;
path = "../";
lvOut.send(path+"user.php", "_self", "POST");


Well... Then, testing all that stuff simple way (using IExplorer and my local webserver) everything seem to work fine - my PHP page successfully get POST data from my Flash object and work them out using, as you can see, by user.php's functions...:

Code:
include 'includes/User.php';
if(isset($_POST['login_info'])){
   $l_info=explode("&",$_POST['login_info']);
   $u_name=$l_info[0];
   $u_pwd=$l_info[1];
   $a = new User();
   $a->login($u_name,$u_pwd);
   header("Location: index.php?name=$u_name");
}


But!!! Trying to test it in PHPEd I can't get it working!!! I see in the log window that data was POSTed:

"Client", "POST:", "11:34:05", ""
"Client", "login%5Finfo=user&1a1dc91c907325c69271ddf0c944bc72", "11:34:05", ""

but no data seem to get to user.php!!! WHY?

Please, explain me!!!

PS: Sorry, for my english and sucha looong post!
View user's profileFind all posts by hypeartistSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8335
Reply with quote
I'd recommend you to check the following stuff:
a) analyze WEB server logs and check if your php script is really called
b) if it is, put phpinfo() function call in the beginning and analyze its output to see what is really passed and how.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Recieving POST data from Flash object. No work!!!
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic