vaa = 1
@app.route('/', methods=['POST', 'GET'])
def index():
if request.method == 'POST':
global vaa
vaa = request.form.get('age')
return render_template('index.html', vaa )
This are the things i want to be able to do with the values from the view function.
myage = vaa
def fun(vaa):
return vaa
if __name__ == "__main__":
app.run(debug=True)
I want to pass a value from the view down to the rest of the code, not to another view function, using global variable don't work, any help, please.