title: How to listSubscribe in Groups Mailchimp API 1.3
body: <p>As the example below shows how to call on the fields, my question is how to call a multiple checked checkbox. please give me an example</p>
  
  <pre><code>   $merge_vars = array('FNAME'=&gt;'Test', 'LNAME'=&gt;'Account', 
                'GROUPINGS'=&gt;array(
                      array('name'=&gt;'Your Interests:', 'groups'=&gt;'Bananas,Apples'),
                      array('id'=&gt;22, 'groups'=&gt;'Trains'),
                      )
                  );
  </code></pre>
  
  <p>I get a solution for this.</p>
  
  <p>To get the multiple checked checkbox you need to do a looping and set it in array then change the array to a string.</p>
  
  <pre><code> if(!empty($_POST['listbox']))
      {
          foreach($_POST['listbox'] as $value =&gt; $val)
          {
  
              $values[] = $val;
  
          }
           $groups = implode(",", $values);
      } 
  </code></pre>
  
  <p>then set it in the merge_vars</p>
  
  <pre><code> $merge_vars = array('FNAME'=&gt;'Test', 'LNAME'=&gt;'Account', 
            'GROUPINGS'=&gt;array(
                  array('name'=&gt;'Your Interests:', 'groups'=&gt; $groups)
                  )
              );
  </code></pre>
  
  <p>Hope it helps :)</p>