$captcha = new Zend_Form_Element_Captcha( 'captcha', // This is the name of the input field // First the type... 'captcha' => 'Image', // Length of the word... 'wordLen' => 6, // Captcha timeout, 5 mins 'timeout' => 300, // What font to use... 'font' => './public/fonts/MS_Reference_Sans Serif.ttf', // Where to put the image 'imgDir' => './public/images/captcha/', // URL to the images // This was bogus, here's how it should be... Sorry again :S 'imgUrl' => 'http://127.0.0.1/treetime4/public/images/captcha/', )));
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:
Czy można jakoś schować to pole? Do czego ono jest w ogóle potrzebne?