I'm using "basic tabs" from Twitter Bootstrap for my webapp
http://twitter.github.io/bootstrap/components.html#navs
I would like to use the Flask request object to send parameters to flask when one of the tabs is clicked.
<form action="{{ url_for('index') }}" method="post">
<ul class="nav nav-tabs">
<li class="active" input type="submit" name="test" value="0">
<a href="#">A</a>
</li>
<li input type="submit" name="test" value="1"><a href="{{ url_for('index') }}">B</a></li>
<li input type="submit" name="test" value="2"><a href="{{ url_for('index') }}">C</a></li>
</ul>
</form>
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?
Thanks!