Question
Flash not sending Vars in POST
Hi i am trying to do a flash login system , Now at the moment
i have 1 textfield and 1 button ( both are simple drawn out ie..
not components from within flash)
Now as you can see i have appended the username ( textfield to the end of the URL for testing purpose) to see if Dataout.username has any value and if the page can see it, Now it works fine with $_GET but when i use $_POST method in AS it simply will not echo out Dataout.username in once the PHP page is opened. Here is the PHP code.
The printed out $_POST global just comes out as Array() showing that nothing is inside $_POST, So i am thinking that Flash is not POST,ing the Var Dataout.username to the page.
<?php
//Assign username and password to Vars.
$username = $_POST['username'];
$password = $_POST['password'];
//Print out the username
echo ("Hello ".$username);
//Display all the vars contained in POST global.
print_r($_POST);
?>
ActionScript Below contained in Button Layer :
Thanks
Now as you can see i have appended the username ( textfield to the end of the URL for testing purpose) to see if Dataout.username has any value and if the page can see it, Now it works fine with $_GET but when i use $_POST method in AS it simply will not echo out Dataout.username in once the PHP page is opened. Here is the PHP code.
The printed out $_POST global just comes out as Array() showing that nothing is inside $_POST, So i am thinking that Flash is not POST,ing the Var Dataout.username to the page.
<?php
//Assign username and password to Vars.
$username = $_POST['username'];
$password = $_POST['password'];
//Print out the username
echo ("Hello ".$username);
//Display all the vars contained in POST global.
print_r($_POST);
?>
ActionScript Below contained in Button Layer :
Thanks