moving $_POST vars outside of function