I have a dropdown list, which allows you to choose the year that will be used in the database search. I would like the user to select one of these dates, set a session variable with the year value, and thus be able to use this variable in future searches to the database.
<li class="dropdown" id="teste">
<a style="color:white;"href="#" class="dropdown-toggle" data-toggle="dropdown"
role="button" aria-haspopup="true" aria-expanded="false">
2016 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">2015</a></li>
<li><a href="#">2017</a></li>
</ul>
</li>
If possible do not change page, but if it is mandatory will not, for me, prevent its use.