title: Python Flask - Receive data from form with multiple textboxes
body: <p>I am generating a web page form a sql query that returns several rows.  Im displaying them in a html table with 1 column being a text box.  I loop trough the sql results for each new line, the textbox fields all end up having the same name.</p>
  
  <p>When clicking the submit button i am only recieving the one value from the first textbox.</p>
  
  <p>Here is the HTML im using</p>
  
  <pre><code>&lt;form action="/commit_changes" method=post&gt;
      &lt;ul class=naming&gt;
    &lt;h2&gt;{{ Overview }}&lt;/h2&gt;
      {% for entry in sensor_names %}
          &lt;li&gt;{{ entry.sensor_add|safe }}
          &lt;input type="text" name="sensor_name" value={{ entry.sensor_name|safe }}&gt;
          &lt;input type="checkbox" name="del" value="del"&gt;
          &lt;li&gt; &lt;br&gt; &lt;/li&gt;
      {% endfor %}
  &lt;/ul&gt;
  
  &lt;input type="submit" name="submit" value="Commit Changes"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Here is the python code in flask:</p>
  
  <pre><code>@app.route('/commit_changes', methods=['GET', 'POST'])
  def commit_changes():
      print(request.form['sensor_name'])
      return redirect('settings')
  </code></pre>
  
  <p>Im having a guess that the only way to send the data back to python is some sort of javascript to loop through the textboxes and send them one at a time.  This is where im stuck :), hope someone can point me in the right direction.
  CD</p>