title: Access Multiselect Form Field in Flask
body: <p>I have a multiselect in html file like this:</p>
  
  <pre><code>&lt;select multiple id="mymultiselect" name="mymultiselect"&gt;         
          &lt;option value="1"&gt;this&lt;/option&gt;       
          &lt;option value="2"&gt;that&lt;/option&gt;       
          &lt;option value="3"&gt;other thing&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>When I access the mymultiselect field in flask/python via:</p>
  
  <pre><code>request.form['mymultiselect']
  </code></pre>
  
  <p>or by using the request.args.get function it only returns one selected item.  I've learned that to get all the selected items I have to add [] to the name of the field, like so:</p>
  
  <pre><code>&lt;select multiple id="mymultiselect" name="mymultiselect[]"&gt;       
          &lt;option value="1"&gt;this&lt;/option&gt;       
          &lt;option value="2"&gt;that&lt;/option&gt;       
          &lt;option value="3"&gt;other thing&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I can see by viewing the post data in firebug that this is working, but I anytime I try to access this field in flask/python it comes back as null or None.</p>
  
  <p>How do you access these multiselect form fields that have "[]" at the end of their name?  I've tried appending "[]" to the field name in the python code as well but that does not seem to work.</p>