Hola!!
Uso esto para volver al lugar donde estaba el cliente:
include(" /carpeta/nombreinclude.php ");
Este es el include:
nombreinclude.php
<?
//ver de qué categoría procede el chiste para saber qué link usar.
$category=$_GET['categoria'];
//link de categoría, según el nombre de categoría eue llegue por get
if($category=="extranjeros"){
$categoria="chextranjeros.php";
}
if($category=="otros"){
$categoria="chotros.php";
}
if($category=="noesmismo"){
$categoria="chnoeslomismo";
}
if($category=="mamamama"){
$categoria="chmamamama";
}
if($category=="locos"){
$categoria="chlocos.php";
}
if($category=="jaimito"){
$categoria="chjaimito.php";
}
if($category=="genios"){
$categoria="chgenios.php";
}
if($category=="exagerados"){
$categoria="chexagerados.php";
}
if($category=="doctores"){
$categoria="chdoctores.php";
}
if($category=="deportes"){
$categoria="chdeportes.php";
}
if($category=="comosedice"){
$categoria="chcomosedice.php";
}
if($category=="colmos"){
$categoria="chcolmos.php";
}
if($category=="cortos"){
$categoria="chchistescortos.php";
}
if($category=="animales"){
$categoria="chanimales.php";
}
if($category=="adivinanzas"){
$categoria="chadivinanzas.php";
}
echo $categoria;
echo "<form name="formulario" method="POST" action="".$categoria."">
<input type="submit" name="volver" value="VOLVER">
</form>"
?>