using flask in python to get html input and store it as python variable
/example.html
<form>
<input type=text name=string> # a string value
<input type=submit>
<input type=text name=float> # a float value
<input type=submit>
</form>
/main.py
@app.route("/")
def get_input():
example_string = request.args.get('search')
example_limit = request.args.get('float')
return render_template('example.html', example_string, example_limit)
/examplefile.py
from main import example_string, example_limit
print(example_string)
print(example_limit)
this particular approach does not seem to work, maybe its the request.args.get() not being used appropriately or something. You can probably see what I've tried to do here. Please help.