Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/10/2013, 12:29
manolilorenzo
 
Fecha de Ingreso: agosto-2013
Ubicación: cadiz
Mensajes: 35
Antigüedad: 10 años, 8 meses
Puntos: 0
Esconder texto si la variable esta vacia

hola como puedo esconder el texto "Salir" cuando la variable $username este vacia ?
Código PHP:
<?php
echo $username;
echo 
"&nbsp;&nbsp;";
echo 
"<a href='".$phpbb_url_path."ucp.php'><img src='".$phpbb_url_path."/download/file.php?avatar=".$link."' border='0' width='".$width."' height='".$height."'
alt='Avatar' /></a>"
;
echo 
"&nbsp;&nbsp;";
echo 
"<a href=" $phpbb_url_path 'ucp.php?mode=logout' '&sid=' $user->data['session_id'] . " target='_self'><font color='red'>Salir</font></a>";
?>