# Let's see if you can find the problem

**URL:** <https://forum.kirupa.com/t/lets-see-if-you-can-find-the-problem/183735>\
**Category:** flash\
**Created:** [March 29, 2006, 4:41pm UTC](https://forum.kirupa.com/t/lets-see-if-you-can-find-the-problem/183735 "2006-03-29T16:41:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregmax17](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gregmax17/32/2243_2.png) [@gregmax17](https://forum.kirupa.com/u/gregmax17)\
**Post date:** [March 29, 2006, 4:41pm UTC](https://forum.kirupa.com/t/lets-see-if-you-can-find-the-problem/183735/1 "2006-03-29T16:41:53Z")

</div>

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.
