Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/03/2006, 13:07
Cubatron
 
Fecha de Ingreso: diciembre-2005
Mensajes: 165
Antigüedad: 18 años, 2 meses
Puntos: 4
Mira si te anda este:
Pag1.php
Código PHP:
<?
session_start
();
if (!isset(
$_SESSION['registrado'])){
$_SESSION['registrado'] = "unusuario";
print(
"<script>window.open('pag2.php','vervariable ',target='_blank');</SCRIPT>");
}
?>
Pag2.php
Código PHP:
<?
session_start
();
if (isset(
$_SESSION['registrado'])) {
echo 
"Hola <b>{".$_SESSION['registrado']."}</b>";
} else {
echo 
"No reconoce la variable";
}
?>
Hasta luego