How to retrieve a value from html form and use that value inside the sql query in python in flask framework

Solution
from flask import request
'''
rest of your code
'''
@app.route("/test1",methods=["GET","POST"])
def test1():
    if request.method == 'POST':
        form_value = request.form.get('Item_1')
        # Or you could use request.form['Item_1'] because request.form is a dictionary