0
I’m getting beaten up and I don’t know why, because this is the first time I’ve tried to do something like this, I have a menu like this:
<div id="collapseUtilities" class="collapse" aria-labelledby="headingUtilities" data-parent="#accordionSidebar">
<div class="bg-white py-2 collapse-inner rounded">
<h6 class="collapse-header">Clientes:</h6>
<a class="collapse-item" href="?page=cadastro_cliente">Cadastrar</a>
<a class="collapse-item" href="">Editar</a>
<a class="collapse-item" href="">Listar</a>
</div>
</div>
As you can see he redirects to a page, down there I have
<?php switch($_GET['page']){
case 'home': include 'home.php';
case 'cadastro_cliente': include 'cadastro_cliente.php';
case 'categorias': include 'categorias.php';
} ?>
What happens is that if I enter the home page.php it lists down the register page and categories, if I enter the client registration it opens categories right below, what I need to do to open only the case page?
Hug
It is not always "necessary". It has many situations where the cascade effect is desirable. Obviously this is not the case of the author, but you have to be careful not to generalize.
– Bacco