[ 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


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


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 Wed, 09 Dec 2015 22:37:15 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.