title: Flask - Return the Same Form that was Submitted
body: <p>How do I get Flask to return the user to the same page, filled out the same way, after he/she submits the form on the page? 'render_template' only seems to work if I know all the variables ahead of time. My form is dynamic, and the variables change depending on selections the user has made. See the psuedo-code below for what I'm thinking of. I know render_template doesn't work like this, but is there a way to just say "use the same form values that came in when rendering the template?"</p>
  
  <pre><code>@app.route('./MyPage', methods=['GET', 'POST'])
  def MyPage():
  
    if request.method == 'POST':
      # Do some stuff
      # return render_template('MyPage.html', context=request.form)
    else:
      # Do some other stuff
  </code></pre>