Does include with parameter?
I have a page .php
that contains the following code:
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#segunda">Segunda-Feira</a></li>
<li><a data-toggle="tab" href="#terca">Terça-Feira</a></li>
<li><a data-toggle="tab" href="#quarta">Quarta-Feira</a></li>
<li><a data-toggle="tab" href="quinta">Quinta-feira</a></li>
<li><a data-toggle="tab" href="#sexta">Sexta-feira</a></li>
<li><a data-toggle="tab" href="#sabado">Sábado</a></li>
</ul>
The nav nav-tabs class forms 6 tabs, and in each ABA, it displays the time of the string.
- At ABA MONDAY I show the Monday times of FULANINHO
- At ABA TUESDAY I show the times of Tuesday of the FULANINHO
- And so on.
When I started to make the code I saw that it would be a repetition of everything, where it would only change the day of the week and the name of the FULANINHO that comes from the previous page via POST.
Then I thought of something like include('segunda.php',$id_fulaninho)
.
It is possible?
If not, would there be some way that I still do not know (I'm new to php
) of reducing this absurd amount of repeated