I am sending variables from flash to PHP but the variables I send aren’t sent. here are my line of codes:
Actionscript:
var thisXtile = Math.floor(char.xtile);
var thisYtile = Math.floor(char.ytile);
var thisMap = Math.floor(game.currentMap);
loadVariablesNum(“update_player_position.php?player_id=”+_root.player_id+"&x_tile="+thisXtile+"&y_tile="+thisYTile+"&map="+thisMap, 0, “POST”);
PHP:
$player_id = $_POST[‘player_id’];
$x_tile = $_POST[‘x_tile’];
$y_tile = $_POST[‘y_tile’];
$map = $_POST[‘map’];
$result = mysql_query(“update player_position set x_tile=’$x_tile’, y_tile=’$y_tile’, map=’$map’ where player_id=’$player_id’”);
looks fine doesn’t it? Now get this: When I trace(thisXtile), or thisYtile or thisMap, I get the correct number to where the player is. For example, the ‘thisXtile’ and ‘thisYtile’ equal 10 and ‘thisMap’ equals 1. But when I send these variables to the PHP, it defaults it back to the old values.
explain this to me! I have been on this for the past week!! I need help, please and thank you.