Cita:
Iniciado por andrexsos17
Hola,
Postea tu codigo.
Claro:
Código PHP:
<?
include('cabezera.php');
if(!isset($_SESSION[usuario]) )
{
echo '<span style="font-size: xx-large; "><strong>Iniciar sesión</strong></span><br/><br/>
<form action="autentificar.php" method="POST">
Nick: <input type="text" name="nick" size="20"><br>
Password: <input type="password" name="pass" size="20" ><br>
<input type="submit" name="submit" value="Iniciar sesión"></form>';
}else{
echo 'Bienvenido <strong>'.$_SESSION[usuario].'</strong>. Ya has iniciado sesión<br />'; //nombre
echo '<a href="perfil.php?id=<?php echo $_SESSION[id] ; ?>">Entrar a mi perfil</a>'; //link del perfil
echo '<br><a href=logout.php>Salir</a>';
}
?>
En cabezera.php estan las conexiones a la db jejeje