Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Bom, eu estou tendo problema para imprimir o usuario de uma pagina,
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Instituto Progredir - Login</title>
<link href="IP.css" rel="stylesheet" type="text/css" />
<link href="../../estilos.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style6 {font-size: 9px}
.style7 {font-size: 9}
.style8 {color: #3300CC; font-family: Verdana, Arial, Helvetica, sans-serif;}
-->
</style>
</head>
<body>
<p class="Font"> </p>
<div align="center">
<table width="1000" border="0" bgcolor="#FFFFFF">
<tr align="center">
<td><table width="990" border="0">
<tr>
<td>
<?php
include 'http://localhost/includes/cabecalho1.php'
?></td>
</tr>
</table></td>
</tr>
<tr align="center">
<td><table width="990" border="0" bgcolor="#FFFFFF">
<tr>
<td width="130" valign="top">
<?php include 'http://localhost/includes/menuEsquerdo.php' ?></td>
<td width="8" bgcolor="#F3F3F3"> </td>
<td width="526" valign="top"><form id="login" name="login" method="post" action="logon.php" onSubmit="return validar() " >
<IFRAME name="login" src="[http://localhost/sistema/login/login.php"](http://localhost/sistema/login/login.php) width="400" height="800" frameborder="0" scrolling="no"></IFRAME>
<p> </p>
</form>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><br />
</p></td>
<td width="10" bgcolor="#F3F3F3"><p> </p> </td>
<td width="299" valign="top"><?php include 'http://localhost/includes/barraDireita.php' ?></td>
</tr>
</table></td>
</tr>
<tr align="center">
<td bgcolor="#F3F3F3"><?php include 'http://localhost/includes/rodape1.php' ?></td>
</tr>
</table>
</div></body>
</html>
esse é o codigo da pagina, eu só uso o frame "login" o resto todo da pagina está em include, eu uso o seguinte codigo para imprimir nome de usuario
<?php echo $_SESSION['UsuarioNome']; ?>
e aparece normalmente apenas na pagina do centro q é onde eu faço login, ela funciona corretametne, poém, eu gostaria de por ele no "menuEsquerdo.php"que segue o codigo abaixo
<!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">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css"></style>
<link href="../estilos.css" rel="stylesheet" type="text/css" />
<style type="text/css"> color: #333333;
} color: #333333;
} color: #333333;
} color: #333333;
}</style></head>
<body>
<table width="150">
<tr>
</tr>
<tr>
<td class="menuEsquerdo"><div align="left"><a href="[http://localhost"](http://localhost) class="menuEsquerdo">Capa</a></div></td>
</tr>
<tr>
<td class="menuEsquerdo"> </td>
</tr>
<tr>
<td class="menuEsquerdo"><div align="left"><a href="[http://localhost/2009/tv-ip/tv-ip.php"](http://localhost/2009/tv-ip/tv-ip.php) class="menuEsquerdo">TV IP </a></div></td>
</tr>
...
<span class="menuEsquerdo"></span>
<p class="destacadoAzul"> </p>
</body>
</html>
tentei usar o mesmo codigo q eu usei no outro para mostrar nome e o mesmo não funcionu :( alguem consegue me dar uma ideia?
ja coloquei session_start() nele, e o codigo e n rolou
obs: postei parte do codigo pois o resto é uma tabela gigante com varias cosias iguais praticamente, entao n é parte util não postei sío o basico mesmo
Carregando comentários...