HTML_QuickForm_CAPTCHA
[ class tree: HTML_QuickForm_CAPTCHA ] [ index: HTML_QuickForm_CAPTCHA ] [ all elements ]

File: qfcaptcha_form_random.php

Source Location: /HTML_QuickForm_CAPTCHA-0.3.0/docs/examples/qfcaptcha_form_random.php

Classes:

Page Details:

HTML_QuickForm_CAPTCHA mix example - Form

In this example, we'll pick the type of CAPTCHA loaded at runtime. So, if the answer doesn't match the first time, the user may be prompted for a different type of CAPTCHA on the next try.

PHP versions 4 and 5

Includes:

require_once('HTML/QuickForm.php') [line 31]
Because the CAPTCHA elements are serialized in the PHP session, you need to include the class declarations BEFORE the session starts.

So BEWARE if you have php.ini session.auto_start enabled, you won't be able to use this element, unless you're also using PHP 5's __autoload() or php.ini's unserialize_callback_func setting

require_once('HTML/QuickForm/CAPTCHA/Equation.php') [line 32]
require_once('HTML/QuickForm/CAPTCHA/Figlet.php') [line 33]
require_once('HTML/QuickForm/CAPTCHA/Image.php') [line 34]
require_once('HTML/QuickForm/CAPTCHA/Word.php') [line 35]

Documentation generated on Mon, 11 Mar 2019 15:21:02 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.