Ver Mensaje Individual
  #6 (permalink)  
Antiguo 16/07/2009, 19:32
Jhonjhon_123
 
Fecha de Ingreso: enero-2009
Mensajes: 100
Antigüedad: 15 años, 4 meses
Puntos: 1
Respuesta: ¿200 includes?

Cita:
Iniciado por Jhonjhon_123 Ver Mensaje
puede ser halgo asi:

Código PHP:

if ( $_GET['go'] != 0)
{
include(
"contenido".$_GET['go'].".php");
}
else
{
include(
"inicio.php");

para ponerle seguridad podemos hacer esto:

Código PHP:

if (is_numeric($_GET['go']))
{

if ( 
$_GET['go'] != 0)
{
include(
"contenido".$_GET['go'].".php");
}
else
{
include(
"inicio.php");
}