One way to combat “bots” that automatically fill in web forms is by using the CAPTCHA technique. This shows the user an image with some random letters; the user must fill in a text field with those letters. In this tutorial, we will create a CAPTCHA image and verify that the user has entered it correctly.