I have an HTML form with multiple inputs named like this:
<input name="hello[]" type="text" />
<input name="hello[]" type="text" />
<input name="hello[]" type="text" />
In PHP you get this as an array but is it the same way in Python, using Flask?
I have tried this:
hello = request.form['hello']
print(hello)
But that did not work, I got a 400 Bad Request
:
Bad Request
The browser (or proxy) sent a request that this server could not understand.
How do I do it in Flask?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…