I am coding a small blog script. I want to have a feature like:
When a guest visits my blog, he / she will post comments (he / she should not be registered membership), his / her comments will display / visible to him / her only. This makes him / her happy. Comments really goes to database and be in editors' review mode. By the time, no one cannot see those comments (except blog owner). After reviewing, the comments will display for visitors later. He / she haven't know he / she is only person who sees those comments. I hope that this feature will prevent spammers and make entries avoid garbage thing.
I think I will use session and visitor's IP to do this. But I don't know how to do that in details. Please help me some lines of code.