2 // Get a helper instance without a form tag
3 $captchaHelper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'captcha_code', false, false));
5 // Add input field with text for CAPTCHA code
6 $captchaHelper->addFieldText('captcha_code', "Bitte wiederhole den Code:");
7 $captchaHelper->addInputTextField('c_code');
9 // Add hidden field with validation hash
10 $captchaHelper->addInputHiddenField('hash', $this->readVariable('captcha_hash'));
13 $captchaHelper->flushContent();
17 <div class="captcha_image">
18 <img src="$config[base_url]/index.php?app={?app_short_name?}&page=code_captcha&encrypt={?encrypted_code?}&request=image" alt="CAPTCHA-Bild" title="CAPTCHA-Bild" class="captcha_img" />
20 <div class="captcha_code">