Ver Mensaje Individual
  #8 (permalink)  
Antiguo 17/06/2015, 22:46
Avatar de truman_truman
truman_truman
 
Fecha de Ingreso: febrero-2010
Ubicación: /home/user
Mensajes: 1.341
Antigüedad: 14 años, 2 meses
Puntos: 177
Respuesta: [-CONCURSO-] PHP Maraton script #1 - Desafios

NIVEL 1 - B
Código PHP:
Ver original
  1. if (isset($_GET['nombre']) && $_GET['nombre'] != ''){
  2.   echo str_replace(".php",".php?r=".$_GET['nombre'],$pantallas[1]);
  3. }else if (isset($_GET['r']) && $_GET['r'] != ''){
  4.   echo str_replace("-NOMBRE-", $_GET['r'], $pantallas[2]);
  5. }else{
  6.   echo $pantallas[0];
  7. }