How webapp2 get checkbox values from jinja2 templates, and the name is the same ? Is the data structure is Dict ? How can get it and pass it ?
html templates:
…
{% for tablename in tablenames %}
<input type = "checkbox" name = "tn">{{tablename}}
{% endfor %}
…
main.py:
tn = self.request.get('tn')
Thank you guys : )
How get the checkbox value and pass it into tn ?
I think your template should be…
And the code should be (I believe that
.GETalso handles.POSTvars as well in WebApp2):