simplified parse post data method