title: Python Flask Sequence of gets and post
body: <p>Hi im working with python and flask</p>
  
  <p>im trying to make a page that server takes you to page 1 </p>
  
  <p>then you send information to the server </p>
  
  <p>then takes you to page 2.</p>
  
  <p>then you send information </p>
  
  <p>and it takes you to page 3.</p>
  
  <p>How whould i do that? </p>
  
  <p>Here is some sample code that i attempted not sure if its remotely close </p>
  
  <pre><code>    @app.route('/',methods=['GET', 'POST'])
  def hello():
      if request.method == 'GET':
          return render_template('SelectOption.html');
      elif request.method == 'POST':
          option = request.form['option'];
          if option == "1":
              return render_template('Option1.html', option = option)
              if request.method == 'POST':
                  return render_template('charts.html');
          elif option =="2":
              return render_template("Charts.html")
              if request.method == 'POST':
                  return render_template('charts.html');
  </code></pre>