Class MathSpamProtection
Tools for adding an optional Maths protection question to a form.
Methods summary
public static
String
|
#
getMathQuestion( )
Creates the question from random variables, which are also saved to the session. |
public static
|
#
correctAnswer( mixed $answer )
Checks the given answer if it matches the addition of the saved session variables. Users can answer using words or digits. |
public static
|
|
public static
|
|
public static
|