published by Zorchenhimer on Tue, 05/10/2011 - 01:43
I came across this bit of code while I was looking for some reference material to help out a classmate with his PHP homework and thought I'd share.
All this does is generate a (basic) captcha image and check the user-inputed value. It's a good exercise for learning the GD library and some basic session stuff.
The code is split up in to two files: one for the HTML form, and the other for generating the image itself.