This is my code:
@user_bp.route(\'/band\', methods=[\'GET\', \'POST\'])
def band_details():
from include.form.User import Banddetails
form = Banddetails
you can also do the following:
d = request.form.to_dict()
source: https://tedboy.github.io/flask/generated/generated/werkzeug.ImmutableMultiDict.html
If you are using an HTTP POST method you need to retrieve parameters like this:
pippo = request.form.getlist('name[]')
If you use HTTP GET method, do it like this:
pippo = request.args.getlist('name[]')
Check the docs here.