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):
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...:
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!