output in same page after form submit flask code example
Example: flask identify different forms on same page
if 'my_form_element_name' in request.form:
print ('stuff')
if 'my_form_element_name' in request.form:
print ('stuff')