How to send text from input fields to MySQL database using a python flask app

Solution
if request.method == "POST":
    username = request.form["uname"]
    first_name = request.form["fname"]
    last_name = request.form["lname"]
    password = request.form["pwd"]
    email = request.form["email"]
    add_new = add_text(username, first_name, last_name, password, email)
    print("success")
if request.method == "POST":
    username = request.form["Username"]
    first_name = request.form["First Name"]
    last_name = request.form["Last Name"]
    password = request.form["Password"]
    email = request.form["Email"]
    add_new = add_text(username, first_name, last_name, password, email)
    print("success")