Witam, mam taki kod odpowiedzialny za captche w formularzu:
  1. $captcha = new Zend_Form_Element_Captcha(
  2. 'captcha', // This is the name of the input field
  3. array('label' => 'Write the chars to the field',
  4. 'captcha' => array( // Here comes the magic...
  5. // First the type...
  6. 'captcha' => 'Image',
  7. // Length of the word...
  8. 'wordLen' => 6,
  9. // Captcha timeout, 5 mins
  10. 'timeout' => 300,
  11. // What font to use...
  12. 'font' => './public/fonts/MS_Reference_Sans Serif.ttf',
  13. // Where to put the image
  14. 'imgDir' => './public/images/captcha/',
  15. // URL to the images
  16. // This was bogus, here's how it should be... Sorry again :S
  17. 'imgUrl' => 'http://127.0.0.1/treetime4/public/images/captcha/',
  18. )));

Wynik tego skryptu jest następujący: wyświetla mi się obrazek, obok niego puste pole textowe, a obok niego również pole textowe z tym, że z ciągiem przypadkowych znaków.
W źródle strony wygląda to tak:
  1. <img width="200" height="50" alt="" src="http://127.0.0.1/treetime4/public/images/captcha/4706f8fbe63e169a812ddf36bf355ec4.png"/><br/>
  2. <input type="hidden" name="captcha[id]" value="4706f8fbe63e169a812ddf36bf355ec4" id="captcha-id">
  3. <input type="text" name="captcha[input]" id="captcha-input" value="">
  4. <input type="text" name="captcha" id="captcha" value="4706f8fbe63e169a812ddf36bf355ec4">

Czy można jakoś schować to pole? Do czego ono jest w ogóle potrzebne?