title: Example of Zend Form with Collection Element using Forms not Fieldsets in Zend Framework2
body: <p>I need a straight forward working example how I can include a collection element in Zend Form, I have seen some examples from Zend Framework 2 <a href="http://zf2.readthedocs.org/en/latest/modules/zend.form.elements.html#collection-element" rel="nofollow">site</a> and from previous posts in StackOverflow where most of them pointed to this <a href="http://www.michaelgallego.fr/blog/?p=190" rel="nofollow">link</a>. But right now I am not using Fieldsets and staying with Forms, so in case if someone can direct me in the right way, how I can include a simple collection element when the user gets a page where the user can choose multiple choices from the shown collection form. Much better would be populating the collection form from database. </p>
  
  <p>I have searched in the internet for quite a sometime now and thought I would post here, so that Zend profis can give their suggestions.</p>
  
  <p>Just For Information:
  Normally one can include a static dropdownbox in Zend Form in this fashion </p>
  
  <pre><code>$this-&gt;add(
      array(
          'name'       =&gt; "countr",
          'type'       =&gt; 'Zend\Form\Element\Select',
          'options'    =&gt; array(
              'label' =&gt; "Countries",
              'options' =&gt; array(
                  'country1' =&gt; 'Brazil',
                  'country2' =&gt; 'USA',
                  'country3' =&gt; 'Mexico',
                  'country4' =&gt; 'France',
              )
          )
      )
  );
  </code></pre>
  
  <p>So I am expecting a simple example which could give me a basic idea how this can be done.</p>