2 // Import framework stuff
3 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
5 // Get a helper instance without a form tag
6 $captchaHelper = ObjectFactory::createObjectByConfiguredName('html_form_helper_class', array($this, 'captcha_code', false, false));
8 // Add input field with text for CAPTCHA code
9 $captchaHelper->addFieldLabel('captcha_code', "Bitte wiederhole den Code:");
10 $captchaHelper->addInputTextField('c_code');
12 // Add hidden field with validation hash
13 $captchaHelper->addInputHiddenField('hash', $this->readVariable('captcha_hash'));
16 $captchaHelper->flushContent();
20 <div class="captcha_image">
21 <img src="{?base_url?}/index.php?app={?app_short_name?}&command=code_captcha&encrypt={?encrypted_code?}&request=image"
22 alt="CAPTCHA-Bild" title="CAPTCHA-Bild" class="captcha_img" />
24 <div class="captcha_code">