Hi,
Like you gave a question
2+2 = ?
user gave answer as 4 then
in the page where you are posting the information, you can check if the answer user gave is correct or not.
If correct then put the information in batabase, else leave it as it is a spammer.