Ver Mensaje Individual
  #6 (permalink)  
Antiguo 05/07/2011, 16:16
Avatar de luismarcos
luismarcos
 
Fecha de Ingreso: mayo-2007
Ubicación: Mérida, VE
Mensajes: 48
Antigüedad: 17 años
Puntos: 1
Respuesta: echo <<< HTML

Funciono!
Código PHP:
<?PHP
session_start
(); 
if(!isset(
$_SESSION['login'])){  
?>
<p align="center" class="Titulo style1">No estas logeado<br />
  Por favor inicia sesi&oacute;n.

<form name="form1" method="post" action="index.php">
<table align="center" cellpadding="0" cellspacing="0">
    <TR>
      <TD align="right">Nombre de usuario:
        <INPUT maxLength="25" size="15" name="username">
      </TD>
    </TR>
    <TR>
      <TD align="right">Password:
        <INPUT type="password" maxLength="25" size="15" value="" name="password">
      </TD>
    </TR>
    <TR>
      <TD align="middle"><INPUT name="submit" type="submit" value="Login">
      </TD>
    </TR>
  </table>
</form>
<?PHP
} else {  
echo 
"Hola ".$_SESSION['login'];  
echo 
"<br><a href='salir.php'>Salir</a>"
}  
?>
Un millón de gracias nuevamente...