Hello, i use this code to send and load data to an php file, so that i can encrypt it. The problem is that it returns the right string, but with a " " (space) at the end. Why is this happening? Thanx
mydata = "12345";
var LV:LoadVars = new LoadVars();
LV.Variable = mydata;
LV.onLoad = function(ok) {
if (ok) {
myVar = LV.password;
}
};
LV.sendAndLoad("myfile.php", LV, "POST");
<?php
$Data = $_POST['Variable'];
$myData = md5($Data);
echo "&password=$myData";
?>