title: How to send data in Flask to another page?
body: <p>I'm using <strong>Flask</strong> to make a tickets booking app. But for now I'm little confused on how to send data from one page to another page, like this snippet of code:</p>
  
  <pre><code>@app.route('/index', methods = ['GET', 'POST'])
  def index():
      if request.method == 'GET':
          date = request.form['date']
          return redirect(url_for('main.booking', date=date))
      return render_template('main/index.html')
  
  
  @app.route('/booking')
  def booking():
      return render_template('main/booking.html')
  </code></pre>
  
  <p>The <strong><code>date</code></strong> variable is a request from a form, and for now I want to send the <strong><code>date</code></strong> data to <code>booking</code> function. What is term for that purpose..?</p>