title: Multiple checkboxes one submit button in multiple forms
body: <p>Currently my submit button is only on one object which is because its outside the for loop, therefor it will only do the computation on the bottom file. </p>
  
  <p>However if I put the button back inside the loop it will put a submit button for every row, but it wont be able to do the computation for multiple files, So I'm wondering how do I get one submit button for all the files, so it will do the computation for each file(which ever is currently checked) </p>
  
  <p><em>(Searched this question before and none of the previously answered questions helped)</em></p>
  
  <p><strong>HTML File (Partially)</strong></p>
  
  <pre><code> {% for f in files %}
   &lt;tr&gt;
       &lt;td&gt;{{ f.key }}&lt;/td&gt;
       &lt;td&gt;{{ f.last_modified | datetimeformat }}&lt;/td&gt;
       &lt;td&gt;{{ f.key | file_type }}&lt;/td&gt;
       &lt;td&gt;
           &lt;form class="download-form" action="{{ url_for('myview.action') }}" method="POST"&gt;
               &lt;input type="checkbox" name="key" value="{{ f.key }}"&gt;
  {% endfor %}
               &lt;button type="submit" name="submit" value="submit"&gt;Submit&lt;/button&gt;
           &lt;/form&gt;
       &lt;/td&gt;
   &lt;/tr&gt;
  </code></pre>
  
  <p><strong>Python File(Partially)</strong></p>
  
  <pre><code>@expose('/', methods=['POST', 'GET'])
  @appbuilder.app.route('/', methods=['POST', 'GET'])
  def action(self):
  
      my_bucket = get_bucket()
      s = my_bucket.objects.all()
      t = getmyobject()
  
      return render_template(
          'page.html',
          my_bucket=my_bucket,
          base_template=appbuilder.base_template,
          appbuilder=appbuilder,
          page=s, t=t
      )
  </code></pre>