14 lines
489 B
Python
14 lines
489 B
Python
from flask import Flask, render_template, request
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route('/', methods=['GET', 'POST'])
|
|
def index():
|
|
if request.method == 'POST':
|
|
selected_checkboxes = request.form.getlist('checkbox')
|
|
selected_radioboxes = request.form.getlist('radiobox')
|
|
return render_template('result.html', checkboxes=selected_checkboxes, radioboxes=selected_radioboxes)
|
|
return render_template('index.html')
|
|
|
|
if __name__ == '__main__':
|
|
app.run(debug=True) |