Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/11/2003, 21:01
waldner
 
Fecha de Ingreso: noviembre-2003
Ubicación: Concepción
Mensajes: 1
Antigüedad: 20 años, 5 meses
Puntos: 0
Problemas con $_GET

Mi ptoblema es el sgte.:

<html>
<head>
<?php include("probando.php")?>
<title>Ejemplo</title>
</head>
<body>
<?php
$id=$_GET['id'];
if ($id=="1")
{
funcion1();
}
if ($id=="2")
{
funcion2();
}
else
{
funcion3();
}
?>
</body>
</html>


Esto me anda muy bien pero solo cuando esta definida la variable "id", cuando no hay problemas. Es decir, pagina.php?id=1 no me da problemas, pero pagina.php sin definir la variable me envia un error.

Si alguien pudiese decirme que debo agregar para corregir esto, estaría muy agradecido.