title: Flask send html data back to view
body: <p>I am creating a page with a list created by a jinja for loop.
  I want the user to make a selection of an item on that list.
  I want that selection to send the user to that items page as well as send the selected item back to my python code for further processing.</p>
  
  <p>In my 'home.html' page i have the following:</p>
  
  <pre><code>{% for item in list %}
      {{ item }}
      &lt;form method='POST'&gt;
          &lt;input type='submit' value='select'&gt;
      &lt;/form&gt;
  {% endfor %}
  </code></pre>
  
  <p>Then in my python view:</p>
  
  <pre><code>@app.route('/', methods=['GET','POST'])
  def home():
      list = ['a','b','c']
  
      #???????????????????????????????????????????????
      selected = request.form.item
  
      return render_template('home.html', list=list)
  </code></pre>