title: Processing clicks via the Flask Request object when using Twitter Bootstrap
body: <p>I'm using "basic tabs" from Twitter Bootstrap for my webapp</p>
  
  <p><a href="http://twitter.github.io/bootstrap/components.html#navs" rel="nofollow">http://twitter.github.io/bootstrap/components.html#navs</a></p>
  
  <p>I would like to use the Flask request object to send parameters to flask when one of the tabs is clicked. </p>
  
  <pre><code>&lt;form action="{{ url_for('index') }}" method="post"&gt;
      &lt;ul class="nav nav-tabs"&gt;
          &lt;li class="active" input type="submit" name="test" value="0"&gt;
              &lt;a href="#"&gt;A&lt;/a&gt;
          &lt;/li&gt;
          &lt;li input type="submit" name="test" value="1"&gt;&lt;a href="{{ url_for('index') }}"&gt;B&lt;/a&gt;&lt;/li&gt;
          &lt;li input type="submit" name="test" value="2"&gt;&lt;a href="{{ url_for('index') }}"&gt;C&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>There are 3 tabs in this example, and I would the corresponding "value" object to be defined and passed via the request object when one of the tabs is clicked. Each tab uses the same URL, so the difference needs to be passed through the request object. The code snippet above doesn't send anything via the request object, could someone please recommend a fix. Am I correct in using the "form" object? </p>
  
  <p>Thanks!</p>