title: How to get multiple selected items from Form in Flask
body: <p>With the <code>&lt;form&gt;</code> having two list items selected "Category 01" and "Category 03":</p>
  
  <pre><code>&lt;form&gt; 
      &lt;div class="form-group"&gt;
        &lt;div&gt;
          &lt;select name='category' multiple class="form-control"&gt;
              &lt;option&gt; Category 01 &lt;/option&gt;
              &lt;option&gt; Category 01 &lt;/option&gt;
              &lt;option&gt; Category 01 &lt;/option&gt;
          &lt;/select&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/yfeWU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yfeWU.png" alt="enter image description here"></a></p>
  
  <pre><code>if request.method == 'POST':
      as_dict = request.form.to_dict()
      print request
  </code></pre>
  
  <p>Which prints this output showing it only gets a single "Category 03".</p>
  
  <pre><code>{'category': u'Category 01'}
  </code></pre>
  
  <p>How to make sure all the selected Categories are listed and not just one?</p>