connect(); $_POST = makeClean($_POST); if ($_POST['right']) //they pressed the right button $_SESSION['member']->curcharacter->move("right"); if ($_POST['back']) //they pressed the down button $_SESSION['member']->curcharacter->move("back"); if ($_POST['forward']) //they pressed the up button $_SESSION['member']->curcharacter->move("forward"); if ($_POST['left']) //they pressed the left button $_SESSION['member']->curcharacter->move("left"); ?>