Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/11/2012, 19:21
ghost_darknet
 
Fecha de Ingreso: mayo-2012
Ubicación: shilito
Mensajes: 67
Antigüedad: 12 años
Puntos: 3
Respuesta: Portal web con login

Cita:
Iniciado por ghost_darknet Ver Mensaje
Hola amigos de foros del web. Tengo una idea en la cual estoy trabajando, pero me encontro con un problema y eh recurrido a uds haber si me pueden ayudar.

Estoy creando un portal web, la idea es, si el usuario quiere ingresar que ingrese su user y pass los cuales estan en el TOP de la pagina, pero una vez ya logeado que no le vuelva aparecer ese texto y solo le muestre que ah iniciado sesion (mostando su Nombre)

no se si se puede hacer, no sé si sera mejor serpar los al login y llamarlo con un include o colocarlo en la misma pagina.

Les dejo el texto programado.

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>XXXXXXXXXXXXXXXX</title>
<style type="text/css">
@import url("styles/default.css");
#apDiv2 {
	position: absolute;
	left: 2px;
	top: 2px;
	width: 858px;
	height: 143px;
	z-index: 1;
	font-size: 36px;
}
#apDiv3 {
	position: absolute;
	left: 1px;
	top: 206px;
	width: 188px;
	height: 527px;
	z-index: 2;
}
#apDiv4 {
	position: absolute;
	left: 861px;
	top: -1px;
	width: 289px;
	height: 153px;
	z-index: 3;
	background-color: #036;
}
#apDiv5 {
	position: absolute;
	left: 209px;
	top: 205px;
	width: 745px;
	height: 348px;
	z-index: 4;
}
#apDiv6 {
	position: absolute;
	left: 3px;
	top: 155px;
	width: 1088px;
	height: 45px;
	z-index: 5;
}
#apDiv4 #form1 table tr td p {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 12px;
	color: #FFF;
}
</style>
</head>

<body>
<div id="apDiv2"><img src="images/Portada.jpg" width="856" height="150" /></div>
<div id="apDiv3"></div>
<div id="apDiv4">
  <form id="form1" name="form1" method="post" action="">
    <table width="100%" border="0">
      <tr>
        <td width="31%"><p>&nbsp;</p>
        <p>Usuario</p></td>
        <td width="37%"><p>&nbsp;</p>
        <p>Contraseña</p></td>
        <td width="32%">&nbsp;</td>
      </tr>
      <tr>
        <td><label for="portal_login_user"></label>
        <input name="portal_login_user" type="text" id="portal_login_user" size="12" maxlength="12" /></td>
        <td><input name="portal_login_password" type="password" id="portal_login_password" size="15" maxlength="15" /></td>
        <td><input name="portal_login_submit" type="image" id="portal_login_submit" value="Ingresar" src="/images/boton_entrar.jpg" align="middle" /></td>
      </tr>
    </table>
  </form>
</div>
<div id="apDiv5"></div>
<div id="apDiv6"></div>
<p><div id="apDiv1"></div> </p>
</body>
</html>