Posts Tagged ‘Comment Spam’

Recently I implemented the reCATPCHA API into a Smarty PHP
contact form and thought this might be something useful to share.
The example provided by Google Code has one certain flaw:
It doesn’t consider if the page was loaded for the first time
whether or not – and also empty submissionswere not considered.

Here’s the simplified PHP code of my contact form – just without the business logic, of course: