title: How to get the Jinja2 generated input value data?
body: <p>In my HTML file, I have:</p>
  
  <pre><code>  &lt;table&gt;
        {% for user in user_data_html %}
        &lt;tr&gt;
           &lt;td&gt;
              &lt;input id="firstname" name="firstname" type="text" value='{{ user.FirstName }}' /&gt;  
           &lt;/td&gt;
           &lt;td&gt;
               &lt;input name="submit" type="submit" value='update' /&gt;
           &lt;/td&gt;
       &lt;/tr&gt;
       {% else %}
       &lt;tr&gt;&lt;td&gt;no user found&lt;/td&gt;&lt;/tr&gt;
       {% endfor %}
   &lt;/table&gt;
  </code></pre>
  
  <p>I want to modify the user name in the webpage by clicking update button in each row. But I always get the first "firstname" using the following python code in the backend:</p>
  
  <pre><code>firstname = request.form['firstname']
  </code></pre>
  
  <p>How can I solve this problem?</p>