I have a page that receives monthly information, to display the month that the user wants to do:
<a href="?mes=ago2015" class="list-group-item
<?=($mes=='ago2015')?'active':''?>" id="ago2015">Agosto / 2015</a>
And call the referring page with an include:
$mes = empty($_GET['mes'])?'infos':$_GET['mes'];
case 'ago2015':
include('infos/agosto2015.php');
break;
Does anyone suggest any better way to do this?