CAPTCHA has become a popular means of securing forms against automated submission, by requiring users to enter a string displayed in an automatically generated image.
This implementation uses Ajax to conveniently combine CAPTCHA into normal pre-submission form verification. You'll need PHP to be installed with the GD image library (most PHP implementations will have this as standard).