Ver Mensaje Individual
  #5 (permalink)  
Antiguo 31/10/2011, 14:56
Polkiko
 
Fecha de Ingreso: enero-2011
Mensajes: 59
Antigüedad: 13 años, 4 meses
Puntos: 2
Respuesta: Link seguido de ID

Cita:
Iniciado por andrexsos17 Ver Mensaje
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