{#- We need to add this element and call the click method, because calling submit() on the form causes failed submissions if the form has another element with name or id of submit. See: https://developer.mozilla.org/en/DOM/form.submit#Specification #} {%- for name, value in post %} {%- if value is iterable %} {%- for index, item in value %} {%- endfor %} {%- else %} {%- endif %} {%- endfor %}