- KeyC0de Dec 9, 2019 at 23:32 1 @Nikos: yes, exactly. However, ButtonPressed value should be maintained in some database if you need it to be stored. How to find out where the Post request is from using Flask? But this should not be in a form right? In order to test Flask installation, type the following code in the editor as Hello.py from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World' if __name__ == '__main__': app.run () Importing flask module in the project is mandatory. Same Arabic phrase encoding into two different urls, why? using $.post() instead of $.get()), your code should be modified to accept POST requests instead of GET requests. I have a front end page which has a a set of submit buttons and the snippet is: I have a Flask server handling all the requests. How do I access environment variables in Python? Rigorously prove the period of small oscillations by directly integrating. Rigorously prove the period of small oscillations by directly integrating. It must be in a form, or you must use Javascript. ParametricPlot for phase field error (case: Predator-Prey Model). By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Connecting 2 VESA adapters together to support 1 monitor arm. That indeed solves my problem! I am trying to create a page to register users but the submit button in my bootstrap form isn't working. Is it possible to stretch your triceps without stopping or riding hands-free? In the Flask code you can add an action under every if statement of the corresponding button like rendering a template or running a python script. "form with submit button flask" Code Answer's button in flask python by Ill Ibis on May 15 2020 Comment 5 xxxxxxxxxx 1 <input type="submit" name="submit_button" value="Do Something"> 2 <input type="submit" name="submit_button" value="Do Something Else"> 3 def contact(): 4 if request.method == 'POST': 5 How do magic items work when used by an Avatar of a God? Form View displays the Form.

flask get submit button name