I have the table in the web form. I will change the values from the drop down and i will submit it. I want to get all the values from table in dictionary format into post method while submitting the page. I will store those values in the backend database.
Can someone suggest me to get the table values from the form in post method python ? Am using flask for front end.
html code for table creation:
<table>
<tr><td>LL6cdsid</td><td>resourcecdsid</td><td>workstation</td><td>location</td><td>date</td><td>status</td><td>raiseit</td><td>changestatus</td><td>Requestid</td></tr>
{%for item in requests %}
<tr><td>{{item[0]}}</td>
<td>{{item[1]}}</td>
<td>{{item[2]}}</td>
<td>{{item[3]}}</td>
<td>{{item[4]}}</td>
<td>{{item[5]}}</td>
<td><a href="http://example.com/">Raise IT</a></td>
<td><select name="status" id="status">
<option value="RAISED">NEW</option>
<option value="RAISED">RAISED</option>
<option value="PENDING">PENDING</option>
<option value="COMPLETED">COMPLETED</option>
<option value="CLOSED">CLOSED</option>
</td>
<td>NIL</td>
{% endfor %}
<td></td></tr>
</table>
Thanks a lot

request.form