Flask receive more than one paramenter on submit buttom pushed

Hi all, I’m writing an application with flask library and html page. In the html page I defined the following string:

  </form><h3>Our Flask Buttons<h3/>
    <form method="post" action="/new">
        <input type="submit" value="VALUE1" name="action1"/>
        <input type="submit" value="VALUE2" name="action2" />
    </form>

and I receive data in flask application with the following code:


@app.route("/open", methods=['GET', 'POST'])
def open():
    if request.method == 'POST':
        if request.form.get('action1') == 'VALUE1':
            print("value1")
        elif  request.form.get('action2') == 'VALUE2':
            print("value2")
        else:
            print("else")
    elif request.method == 'GET':
        return render_template('new.html')

I would like receive more then “name” and “value” paramaters in flask. It is possible add option parameters passed during submit and how can receive them in flask code? have someone a tutorial for this?
thank you very much in advance