In my HTML file, I have:
<table>
{% for user in user_data_html %}
<tr>
<td>
<input id="firstname" name="firstname" type="text" value='{{ user.FirstName }}' />
</td>
<td>
<input name="submit" type="submit" value='update' />
</td>
</tr>
{% else %}
<tr><td>no user found</td></tr>
{% endfor %}
</table>
I want to change the username on the webpage by clicking the refresh button on each line. But I always get the first "first name" using the following python code in the backend:
firstname = request.form['firstname']
How can I solve this problem?
source
share