cvs: peardoc /en/package/html/html-quickform/html-quickform addgrouprule.xml

From: Date: Wed, 22 Oct 2003 15:27:00 +0000
Subject: cvs: peardoc /en/package/html/html-quickform/html-quickform addgrouprule.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-1720@lists.php.net to get a copy of this message
avb Wed Oct 22 11:27:00 2003 EDT Modified files: /peardoc/en/package/html/html-quickform/html-quickform addgrouprule.xml Log: fixed problem in the example (spotted by Ignatius Reilly) Index: peardoc/en/package/html/html-quickform/html-quickform/addgrouprule.xml diff -u peardoc/en/package/html/html-quickform/html-quickform/addgrouprule.xml:1.2 peardoc/en/package/html/html-quickform/html-quickform/addgrouprule.xml:1.3 --- peardoc/en/package/html/html-quickform/html-quickform/addgrouprule.xml:1.2 Sat May 31 11:13:52 2003 +++ peardoc/en/package/html/html-quickform/html-quickform/addgrouprule.xml Wed Oct 22 11:27:00 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.html.html-quickform.html-quickform.addgrouprule"> <refnamediv> <refname>HTML_QuickForm::addGroupRule()</refname> @@ -166,9 +166,9 @@ // Simple rule: at least 2 checkboxes should be checked $form->addGroupRule('ichkABCD', 'Please check at least one box', 'required', null, 2); -$id[] = &HTML_QuickForm::createElement('text', 'lastname', 'Name', array('size' => 30)); -$id[] = &HTML_QuickForm::createElement('text', 'code', 'Code', array('size' => 5, 'maxlength' => 4)); -$form->addGroup($id, 'id', 'ID:', ',&nbsp'); +$idGrp[] = &HTML_QuickForm::createElement('text', 'lastname', 'Name', array('size' => 30)); +$idGrp[] = &HTML_QuickForm::createElement('text', 'code', 'Code', array('size' => 5, 'maxlength' => 4)); +$form->addGroup($idGrp, 'id', 'ID:', ',&nbsp'); // Complex rule for group's elements $form->addGroupRule('id', array( 'lastname' => array(

« previous php.pear.doc (#1720) next »