corrected syntax error in api_post.php