Fred Koschara - My official personal Web page

The Internet Home of

Fred Koschara

Archive for September, 2018

HumanMathTest, an open source PHP class

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

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.

 


To support my work, please buy a pre-publication copy of Race To Space. For more info about the project, see the Race To Space site, subscribe there to be kept abreast of its progress.


We are going to run out of oil. Before that happens, we MUST have a replacement source of energy and feed stock for our civilization that has become so dependent on plastic. The time to act is NOW!! Please visit SpacePowerNow.org to help build a solution.

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

Site Features