Просмотр исходного кода

docs improvements, see ZF-5418

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16125 44c647ce-9c0f-0410-b52a-842ac1e357ba
stas 16 лет назад
Родитель
Сommit
9422a7ee05
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      documentation/manual/en/module_specs/Zend_Captcha-Operation.xml

+ 4 - 1
documentation/manual/en/module_specs/Zend_Captcha-Operation.xml

@@ -59,10 +59,13 @@ $captcha = new Zend_Captcha_Figlet(array(
 ));
 
 $id = $captcha->generate();
+echo "<form method=\"post\" action=\"\">";
 echo $captcha->render($view);
+echo "</form>";
 
 // On subsequent request:
-// Assume captcha setup as before, and $value is the submitted value:
+// Assume captcha setup as before, the value of $_POST['foo']
+// would be key/value array: id => captcha ID, input => captcha value
 if ($captcha->isValid($_POST['foo'], $_POST)) {
     // Validated!
 }