title: Zend_Form_Element_Checkbox multiple values
body: <p>I have below codes</p>
  
  <pre><code>foreach ($this-&gt;getChitsInstallment() as $key =&gt; $installment) {
              $checkElement = new Zend_Form_Element_Checkbox("installment[]");
              $checkElement-&gt;setAttrib('id', 'installment_'.$key)-&gt;setDecorators($decorators-&gt;elementDecorators);
              $this-&gt;addElement($checkElement); 
              $checkElements[] = $checkElement-&gt;getName();
  
              $textElement = new Zend_Form_Element_Text("installmentvalue[$key]");
              $textElement-&gt;setAttrib('readonly', 'true')-&gt;setAttrib('class', 'inp-form');
              $textElement-&gt;setAttrib('id', 'text_'.$key)-&gt;setDecorators($decorators-&gt;elementDecorators); 
              $textElement-&gt;setValue($installment);
              $textElement-&gt;setLabel("Installment $key: ");
              $this-&gt;addElement($textElement);
              $textElements[] = $textElement-&gt;getName();
  
          }
  </code></pre>
  
  <p>I want an output like </p>
  
  <pre><code>&lt;input type="checkbox" name="installment[]" id="installment_1" /&gt;
  &lt;input type="checkbox" name="installment[]" id="installment_2" /&gt;
  &lt;input type="checkbox" name="installment[]" id="installment_3" /&gt;
  </code></pre>
  
  <p>In view i just call <code>&lt;?php echo $this-&gt;form ?&gt;</code> Only</p>
  
  <p>Pls give me a solution for this</p>
  
  <p>Regards
  Nisanth</p>