title: python cgi.FieldStorage.getvalue() not returning values from POSTed form elements
body: <p>Using </p>
  
  <pre><code>import cgi
  form = cgi.FieldStorage()
  email = form.getvalue('email', 0)
  </code></pre>
  
  <p>Works when form values are sent via GET but not with POST, ie 0 is being assigned to <code>email</code>.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>edit: adding html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;&lt;head&gt;&lt;title&gt;login&lt;/title&gt;&lt;/head&gt;
  &lt;body&gt;
  &lt;form action="cgi.py" method="post"&gt;
  &lt;input type="text" name="email"/&gt;
  &lt;input type="submit"/&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>