How do I send a string from HTML to python using flask? [duplicate]

Solution
from flask import request
var_name = request.form['name_attr']