0
When I pass parameters in the URL to a particular file through a GET, and this file makes the necessary changes, it has a include
to return the home page of the action performed.
When you return to the page, the information passed as parameters is still in the URL (example: site.com/página.php?id=31
). How do I when returning it update and stay only the real page (site.com/pagina.php
)?
File with include ( goes to the header, makes the changes and returns to where it was in the templates/startup folder.php):
<?php
$excluir=1;
include("includes/cabecalho.php");
if(isset($excluiu)){
if($excluiu==1 || $excluiu==0){
include("templates/inicio.php");
}else{
echo "<script>alert('O Sistema apresentou algum erro, fale com o administrador!');</script>";
}
}else{
echo "<script>alert('O sistema apresentou algum erro, fale com o administrador!');</script>";
}
?>
How are you doing the include? It would be nice to explain the question better because you say you have one
include
to return to the home page, which doesn’t make much sense. What you call "return"?– Bacco
Rodrigo, a little code with the relevant parts may make the question clearer
– gmsantos