I'm trying to create a more dynamic way of loading the pages I'm using, loading files as CSS only on one page, and from that page, call the others. However, I can not receive the value I'm passing through the URL. Here is the shipping code:
<div id='navbar' class='navbar-collapse collapse'>
<ul class='nav navbar-nav'>
<li class='dropdown'>
<a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-haspopup='true' aria-expanded='0false'>Ofícios<span class='caret'></span></a>
<ul class='dropdown-menu'>
<li class='dropdown'>
<a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-haspopup='true' aria-expanded='false'>Funcionário<span class='caret'></span></a>
<ul class='dropdown-menu'>
<li><a href='funcionario_cadastrar.php?link=17'>Cadastrar</a></li>
<li><a href='funcionario_listar.php?link=18'>Listar</a></li>
<li><a href='funcionario_consultar.php?link=19'>Consultar</a></li>
</ul>
</li>
</ul>
</li>
</ul>
And receiving:
$link = $_GET["link"];
print_r($_GET["link"]);
if(isset($_GET["link"])){
/*
$pagina[17] = "funcionario_cadastrar.php";
$pagina[18] = "funcionario_listar.php";
$pagina[19] = "funcionario_consultar.php";
if(!empty($link)){
if(file_exists($pagina[$link])){
include $pagina[$link];
}else{
include "bem_vindo.php";
}
}else{
include "bem_vindo.php";
}
}else{
include "bem_vindo.php";
*/
}