title: Flask getlist always empty
body: <p>I am trying to add checkboxes so I can delete multiple records from a database. I give multiple inputs the same <code>name</code>, but <code>request.form.getlist</code> returns an empty list even if some boxes are checked.</p>
  
  <pre class="lang-html prettyprint-override"><code>{% for order in orders %}
  &lt;input type="checkbox" name="select_button" value="{{ order.order_id }}"&gt;
  {% endfor %}
  </code></pre>
  
  
  
  <pre><code>@mod_order.route('_delete_multiple_confirmation', methods=['GET', 'POST'])
  def delete_multiple_orders_confirmation():
      orders = (request.form.getlist('select_button'))
      user_id = request.args.get('user_id')
      response_context = {'orders': orders, 'user_id': user_id}
      return render_template('delete_multiple_order_confirmation.html', **response_context)
  </code></pre>