olliepop
Member
- Messages
- 138
- Reaction score
- 0
- Points
- 16
Hey, i've been working on an MMORPG based in flash, and for some stupid reason this script which is meant to send POST data to a PHP webpage [for testing] isn't working!
This is the code:
It is based under a button named btnGo. The button works, as it goes to the page required but the page doesn't read the POST data. Heres the code for the page:
Have i done something wrong with the variables? Or is it a minor stupid PHP error i've made?
Please help!
This is the code:
Code:
on (click) {
var login_Form = new LoadVars();
login_Form.Pass = txtPass.text;
login_Form.User = txtUser.text;
/*"_self" specifies the current frame in the current window.
"_blank" specifies a new window.
"_parent" specifies the parent of the current frame.
"_top" specifies the top-level frame in the current window. */
login_Form.send("http://www.olliepop.x10hosting.com/flash.php","_blank","POST");
}
It is based under a button named btnGo. The button works, as it goes to the page required but the page doesn't read the POST data. Heres the code for the page:
Code:
<html>
<head>
<title> POST test </title>
</head>
<body>
<?php
echo $_POST['User'];
echo "<Br>Break<br>";
echo $_POST['Pass'];
?>
</body>
</html>
Have i done something wrong with the variables? Or is it a minor stupid PHP error i've made?
Please help!