Implementation of mathematic operation CAPTCHAs (Completely Automated Public Turing tests to tell Computers and Humans Apart).
This package provides the functionality to create Numeral CAPTCHAs (Completely Automated Public Turing tests to tell Computers and Humans Apart). Features include:
Creating numerical Captchas
The package creates numeral CAPTCHAs; due to the stateless nature of the HTTP protocol, the logic to secure a webpage using the package must be specifically implemented. See the usage example for detailled information.
Currently
The following example implements the standard use of a CAPTCHA: Submitted form data is only evaluated when a CAPTCHA has been solved correctly.
Example 61-3. Creating a Numeral CAPTCHA This example is just to show you how to generate a simple mathematic operation with Text_CAPTCHA_Numeral.
|
Example 61-4. Securing a form with a Numeral CAPTCHA This example will show you how to secure a form using the numeral captcha. It takes generates an operation and store it's result into a session variable
|
Text_CAPTCHA_Numeral gives you the ability to generate numerical mathematical captchas.
getOperation() generates the operation that is going to be shown to the end user.
getAnswer() Gets the answer of the generated operation's answer.