PureCode Software interview question

How do you handle data validation and storage for new posts in a forum application?