Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/09/2008, 17:21
luks77
 
Fecha de Ingreso: diciembre-2007
Mensajes: 274
Antigüedad: 16 años, 5 meses
Puntos: 0
Respuesta: mostrar/ocultar campos ausuarios registrados

ok vos lo que tenes que hacer es

Código PHP:
<?
if(!$_SESSION["nick"]){ /*Acordate despues de session va la variable entre comillas y sin el signo $*/
?>
          </p>
            <form method="post" name="form1" id="form1">
              <p><b>Usuario:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b>
                  <input type="text" name="nick" maxlength="20" />
                  <b>Contraseña:</b>
                  <input type="password" name="pass" maxlength="20" />
                  <br />
                  <?php if(isset($_REQUEST[enviar])){ echo $msn; }?>
                  <input type="submit" name="enviar" value="Iniciar Sesión" />
                  <br />
              </p>
            </form></th>
      </tr>
    </table>
    <p></p></td>
    <td><? 
}else { 
?>
Bienvenid@: <b><?php echo $_SESSION["nick"]/*Lo mismo aca va entre comillas" " */?></b> <br />
<table width="516" height="391" border="0">
  <tr>
    <th colspan="3" bgcolor="#CCCCCC" scope="row"> <?php echo $_SESSION[email]; ?> </th>
  </tr>
  <tr>
    <td width="438" colspan="3" align="center">aki va cuando ya esta logeado<br /></td>
  </tr>
  
  <tr>
    <th colspan="3" scope="row"><a href="salir.php">Salir</a></th>
  </tr>
</table>
<?php ?>
Fijate si ahi funciona :)