How can I add character recognition validation to my website?

I am getting some spam messages on my website. I would like to add one of the character recognition validation functions you see on websites which prevent bots from submitting spam.

Does anyone know where I can find an example in php?
Will, August 2007


done
go to phpya.com there are some very good examples for "captcha". or google the word "Captcha examples in php".

sebage AV Arg, August 2008