Código PHP:
$_SESSION["s_membresia"] = $row['membresia'];
echo "<body bgcolor='#F1F2F5'><table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#CCCCCC'><tr>";
echo "<td align='center'></td></tr><tr>";
echo "<td align='center'><strong><font color='#FF0000'>".$_SESSION['s_usuario']."</font></strong>ha iniciado session satifactoriamente!.</td></tr><tr>";
$id = obtener($res,$i,"id");
if (isset($dir)) {
if ("$dir"=="index")
echo "<td align='center'><a href='index.php'>Continuar</a></td></tr></table>";
echo "<meta http-equiv='refresh' content='5; url=index.php' />";
}
if ("$dir"=="info")
echo "<td align='center'><br><a href='info.php?id=".$id."'>Continuar</a></td></tr></table>";
echo "<meta http-equiv='refresh' content='5; url=info.php?id=".$id."' />";
}
if ("$dir"=="guias")
echo "<td align='center'><a href='guias.php'>Continuar</a></td></tr></table>";
echo "<meta http-equiv='refresh' content='5; url=guias.php' />";
}
if ("$dir"=="forum")
echo "<td align='center'><a href='forum/index.php'>Continuar</a></td></tr></table>";
echo "<meta http-equiv='refresh' content='5; url=/forum/index.php' />";
if ("$dir"=="")
echo "<td align='center'><a href='index.php'>Continuar</a></td></tr></table>";
echo "<meta http-equiv='refresh' content='5; url=index.php' />";
exit();
}else{
}