title: Iterating over request.form still gives me one result in Flask, Python
body: <p>I have this view:</p>
  
  <pre><code>def admin():
      f = file('config.py', 'r').read()
      c = f.split('\n')
      confs = [e for e in c if e.strip()]
      conf_dict = {}
      for conf in confs:
          p = conf.split('=')
          conf_dict[p[0]] = p[1].strip("'")
  
      val = [value for key,value in conf_dict.iteritems()]
      opval = not val
  
      if request.method == 'POST':
          name = request.form
          for v in request.form:
              return "%s : %s" % (v,request.form[v])
      return render_template('admin.html', opval = opval, conf = conf_dict)
  </code></pre>
  
  <p>and this the html part of it with the form:</p>
  
  <pre><code>&lt;h2&gt;Configuration Page&lt;/h2&gt;
  
  &lt;form method="post"&gt;
  
  &lt;hr&gt;
  &lt;b&gt;Server&lt;/b&gt;
  &lt;/br&gt;
  &lt;/br&gt;
  {% for key,value in conf.iteritems() %}
      {% if (value == 'True') %}
  
          {{ key.replace('_', ' ').capitalize() }} :
  
      &lt;input type="checkbox" value ='True' name='check' checked&gt;
          {{ value }}&lt;/input&gt;
  
      {% elif (value == 'False') %}
  
          {{ key.replace('_', ' ').capitalize() }} :
  
      &lt;input type="checkbox" value ='False' name='check'&gt;
          {{ value }}&lt;/input&gt;
  
      {% else %}
  
      &lt;/br&gt;
      &lt;/br&gt;
  
      {{ key.replace('_', ' ').capitalize() }} : 
  
          &lt;input type=text name={{ key.replace('_', ' ').lower() }} 
              value={{value}}&gt;
  
      {% endif %}
      {% endfor %} 
      &lt;hr&gt;
      &lt;/br&gt;
      &lt;/br&gt;
  
  &lt;input type="submit" value="Save" /&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>What I want to get are the values in the <strong>name</strong> field from all the inputs, but I just get this <code>secret : changethiskey</code>.</p>
  
  <p>It gives me the problem with a normal dictionary as well, as long as it's put in the POST execution flow.</p>