title: Multiple Select - Chosen jQuery
body: <p>I am using the Harvest Chosen jQuery plugin successfully to create a drop down single selection list with a submit button on a Wordpress site. This is connected up to display all terms from a given taxonomy, and allows a user to choose a term and then press a submit button to load the corresponding page relating to the selected term.</p>
  
  <p>I am now trying to get the plugin to work with multiple selections of terms from the taxonomy. I have the selection working and on the front-end a user can select multiple terms, but I cannot figure out how to submit the multiple selections.</p>
  
  <p>I know my code is missing something, but I can't figure out what needs modifying to allow multiple terms to be selected.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>&lt;form action="&lt;?php bloginfo('url'); ?&gt;"&gt;
  &lt;div&gt;
  &lt;?php
  function get_terms_dropdown($taxonomies, $args){
      $myterms = get_terms($taxonomies, $args);
      $output ="&lt;select name='topics' class='chosen' style='width:500px' multiple='true'&gt;";
      foreach($myterms as $term){
          $root_url = get_bloginfo('url');
          $term_taxonomy = $term-&gt;taxonomy;
          $term_slug = $term-&gt;slug;
          $term_name = $term-&gt;name;
          $link = $term_slug;
          $output .="&lt;option value='".$link."'&gt;".$term_name."&lt;/option&gt;";
  
  }
      $output .="&lt;/select&gt;";
  return $output;
  }
  
  $taxonomies = array('topics');
  $args = array();
  echo get_terms_dropdown($taxonomies, $args);
  
  ?&gt;
  &lt;div&gt;&lt;input type="submit" value="Filter" /&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Ordinarily, for multiple selections, the URL structure would look like the following for an 'AND' query:</p>
  
  <pre><code>domain.com/?topics=topic1+topic2+topic3
  </code></pre>
  
  <p>OR the following for an 'OR' query:</p>
  
  <pre><code>domain.com/?topics=topic1,topic2,topic3
  </code></pre>
  
  <p>Getting either of these options would work for now (I eventually intend to add an option for AND/OR searches)</p>
  
  <p>Any help or pointers in the right direction to get this working would be great.</p>