Answer the question
In order to leave comments, you need to log in
How to get value from multiple fields with the same name?
I create a page with a form like this:
class SettingForm(Form):
index = TextField('index')
login = TextField('login')
password = TextField('password')
fullName = TextField('fullName')
organization = TextField('organization')
department = TextField('department')
form = SettingForm()
return render_template('page.html', form = form)
<input type="text" name="login[]">
Answer the question
In order to leave comments, you need to log in
request.args.getlist('param_name')
will return a list if multiple parameters with the same name are passed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question