title: Receiving HTML request from Bootstrap <button>
body: <pre><code>&lt;form method="post" class="form-horizontal" role="form"&gt;
      &lt;div class="btn-group col-sm-3"&gt;
          &lt;button id="typeSelect" type="button" name="reportType" class="btn btn-default dropdown-toggle" data-toggle="dropdown"&gt;
              People &lt;span class="caret"&gt;&lt;/span&gt;
          &lt;/button&gt;
          &lt;ul class="dropdown-menu" role="menu"&gt;
              &lt;li&gt;
                  ...
              &lt;/li&gt;
              ...
          &lt;/ul&gt;
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          &lt;label for="inputName" class="col-sm-2 control-label"&gt;Name&lt;/label&gt;
          &lt;div class="col-sm-3"&gt;
              &lt;input type="text" class="form-control" id="inputName" placeholder="Name" name="name" value="{{name}}" onblur="isEmpty(this)"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I have two inputs in my form and I am trying to get the input in my Python code.</p>
  
  <pre><code>    report_type = self.request.get('reportType')
      name = self.request.get('name')
  </code></pre>
  
  <p><em>name</em> is working correctly, but <em>report_type</em> will always be None.<br>
  What is the correct way to retrieve the selection in a button (Bootstrap)?</p>