If you want to use this code, please link back to www.officedevils.com - you don't have to, just a comment on your blog will do!
These two code fragments are pretty simple. It randomly generates two numbers, and adds them as hidden variables on your site's submission or sign-up form. The user then has to
do the simple sum before the submission is accepted.
Yes, you could write a grep to find the numbers and add them, and submit that, but I am sure that won't happen until a LOT of people start using this, and then you can simply
move the variables, or add to it, so that the numbers are turned into words, or change the variable names, or change the sign.
You might also want to make the maths that little bit harder than adding a ten to a digit, to improve the quality of members you get!! ;-)
The big advantage is that this doesn't limit access to those without sight or graphics, such as disabled or WAP users, allowing you to still comply with the regs. on usage.