title: How to get table row details when redirecting
body: <p>I'm working with Flask and MySQL to create a table that gets populated based on the database. Now, when a user clicks on a particular row, I need to redirect to another page that will tell me more about that particular row.</p>
  
  <p>I have the redirection part down but how do I get information about that row on the backend?</p>
  
  <p>Here is my HTML code:</p>
  
  <pre><code>&lt;tbody&gt;
      {% for row in resultPois %}
      &lt;tr onclick="window.document.location='/pageDetail';"&gt;
          &lt;td&gt;{{ row[0] }}&lt;/td&gt;
          &lt;td&gt;{{ row[1] }}&lt;/td&gt;
          &lt;td&gt;{{ row[2] }}&lt;/td&gt;
          &lt;td&gt;{{ row[3] }}&lt;/td&gt;
          &lt;td&gt;{{ row[4] }}&lt;/td&gt;
          &lt;td&gt;{{ row[5] }}&lt;/td&gt;
      &lt;/tr&gt;
      {% endfor %}
  &lt;/tbody&gt;
  </code></pre>
  
  <p>On the flask side:</p>
  
  <pre><code>@app.route('/pageDetail')
  def page_detail():
      # get info here to render page!
      return render_template('page_detail.html')
  </code></pre>