Got submit button working

This commit is contained in:
Dan Dembinski
2019-07-03 15:08:22 -04:00
parent bde35b86ac
commit 1d29437189
3 changed files with 41 additions and 17 deletions

View File

@@ -5,19 +5,17 @@
<title>Title</title>
</head>
<body>
{% for x in ClientName %}
{{ ClientName[loop.index0] }} <br>
{% endfor %}
<br><br>
<select name = "SelectedClient">
{% for x in ClientName %}
<option value = "{{ SelectedClient }}" > {{ ClientName[loop.index0] }} </option>
{% endfor %}
</select>
<br>
<input type="submit">
<br><br>
{{ SelectedClient }}
<form method="post" action = "{{ url_for('runReport') }}" >
<select name = 'SelectedClient'>
{% for x in ClientName %}
<option value = {{ ClientName[loop.index0] }} > {{ ClientName[loop.index0] }} </option>
{% endfor %}
</select>
<br>
<button type="submit">Submit</button>
</form>
</body>
</html>