Fred Koschara - My official personal Web page

The Internet Home of

Fred Koschara

software development

HumanMathTest, an open source PHP class

Sep. 24, 2018, under software development, Web development

HumanMathTest illustration

I’ve published my first contribution to the FOSS community on github: HumanMathTest implements a math test ‘bot deterrent PHP class for use in online forms.

This class is used to create an image to be included in an online form that shows a simple math test the visitor must solve when submitting the form. The operands and operation are stored in the $_SESSION data for the page. After submitting the form, the visitor’s answer is checked by calling the verify() method to compare their entry vs. the session data. If an error is found, the form submission should be rejected.

The demo page illustrates many of the options available, and includes a link to download the fully commented source code, including that of the demo and example pages.

 Digg  Facebook  StumbleUpon  Technorati  Deli.cio.us 
Leave a Comment more...

Site Features