PHP LoadVars

I am practicing with PHP and here is my PHP code…

 
<?php
$phpvar1 = $HTTP_POST_VARS["pswrd"];
$phpvar2 = $HTTP_POST_VARS["usrName"];
$success = "Login was a success.";
$notSuccess = "Loging was not a success.";
if( $phpvar1 == "05111984" && $phpvar2 = "simpli3"){
 echo "loginStatus=$success";
} else {
 echo "loginStatus=$notSuccess";
}
?>

here is my AS code…


enterButton.onRelease = function() {
 loginVars["usrName"] = login.text;
 loginVars["pswrd"] = password.text;
 loginVars.sendAndLoad("[http://www.simplifiedsoftware.org/scripts/login.php](http://www.simplifiedsoftware.org/scripts/login.php)", loginResponse);
 loginResponse.onLoad = function(success) {
  login.text = "";
  password.text = "";
  if (success == true) {
   trace(this.toString());
   status.text = this.loginStatus;
  }
 };
};

and this is what it traces

pswrd=05111984&usrName=simpli3
%3C%21DOCTYPE%20HTML%20PUBLIC%20%22%2D%2F%2FW3C%2F%2FDTD%20HTML%204%2E01%20Transitional%2F%2FEN%22%20%22http%3A%2F%2Fwww%2Ew3%2Eorg%2FTR%2Fhtml4%2Floose%2Edtd%22%3E%0A%3Chtml%3E%0A%3Chead%3E%0A%3Cmeta%20http%2Dequiv=%22Content%2DType%22%20content%3D%22text%2Fhtml%3B%20charset%3Diso%2D8859%2D1%22%3E%0A%3Ctitle%3EUntitled%20Document%3C%2Ftitle%3E%0AloginStatus%3DLogin%20was%20a%20success%2E%3C%2Fhead%3E%0A%0A%3Cbody%3E%0A%0A%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E%0A&onLoad=%5Btype%20Function%5D

and it outputs undefined for this.loginStatus…

What is a matter? :sigh: