I'm working on a project and the header
function can not find the destination passed to it. I have the following folder structure:
Inagivenform,Ipassaction
to:
<formmethod="post" action="index.php?pagina=../controller/controllerCategoria">
So far so good, but what I would like is that when I got to that file, I would be able to return to a file within admin
.
I was trying with the following header
:
header('Location:http://localhost/tecmidiaCor/admin/index.php?pagina=criarPaginas');
In this case, I would like to go back to the file criarPaginas.php
.
I have not put the% point of% because in my PHP
I have a script that always assigns the contents of the page variable.