title: flask multiple submit button
body: <p>I am using flask and jinja2 to create a simple web app to serve up a simple sklearn algorithm for predictions.</p>
  
  <p>In my html I need to get 4 variables: client id, textid, textid1, textid2</p>
  
  <p>It currently works when I have it all connected to one submit button. But I would like to have two submit buttons to have the client id submit at the top of the page and the textid stuff at the bottom of the page. When I try to have two submit buttons it causes the page to refresh and I not able to connect the client id to the 3 textid vars.</p>
  
  <pre><code>    &lt;div class="col"&gt;
          &lt;div class="form-group"&gt;
          &lt;label&gt;Enter Customer ID or leave blank for random selection &lt;/label&gt;
           &lt;form method="POST"&gt;
              &lt;input name="text", id='text', placeholder="Client ID #", value="{{ client_id|round|int }}" &gt;
              &lt;br&gt;
              &lt;label&gt;Enter 3 suggestions&lt;/label&gt;
              &lt;br&gt;
              &lt;input name="textid", placeholder="Suggested Model ID #", value="{{ request.form['textid'] }}"/&gt;
              &lt;input name="textid1", placeholder="Suggested Model ID #", value="{{ request.form['textid1'] }}"/&gt;
              &lt;input name="textid2", placeholder="Suggested Model ID #", value="{{ request.form['textid2'] }}"/&gt;
  
              &lt;input type="submit" &gt;
            &lt;/form&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p>I'm simply grabbing it in flask like this:</p>
  
  <pre><code>@app.route('/suggestion', methods=['GET', 'POST'])
  def with_suggestions():
  
  try:
      client_id=request.form['text']
  
  except:
  #custom function when client id is not entered to get random one
      client_id = recommender.random_client_id()
  try:
      model_id=request.form['textid']
      model_id1=request.form['textid1']
      model_id2=request.form['textid2']
  #other functional code after this
  </code></pre>
  
  <p>How can I break up the html to get two submit buttons? Thanks!!</p>