Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/08/2005, 13:05
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 5 meses
Puntos: 11
1) en el segundo script $i no tiene valor
2) si tienes register_globals=Off en php.ini tendrias que tomar la variable asi:

Código PHP:
<?php
  $i
=1
  
$nombre="nombre$i";
  print 
"<h2>Hola ".$_GET[$nombre]."</h2>\n";
?>
Encuentro "extraño" hacer eso, aunque funcione.