Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/guildhc/public_html/login/index.php:5) in /home/guildhc/public_html/login/painel.php on line 15
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/guildhc/public_html/login/index.php:5) in /home/guildhc/public_html/login/painel.php on line 15
Pergunta
mestre fyoda
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/guildhc/public_html/login/index.php:5) in /home/guildhc/public_html/login/painel.php on line 15
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/guildhc/public_html/login/index.php:5) in /home/guildhc/public_html/login/painel.php on line 15
index.php
<html> <head> <link href="estilos.css" rel="stylesheet" type="text/css"> <STYLE> A{ COLOR: green; TEXT-DECORATION: none } A:visited { COLOR: black; TEXT-DECORATION: none } A:hover { COLOR: orange; TEXT-DECORATION: none } </STYLE> </head> <body> <table width="150" border="0" cellspacing="10" style="border= 1px solid black" class="TD" align="center" bgcolor="#FOFOFO" class="TD"> <tr> <td align="left"> <font face="Arial, Helvetica, sans-serif" size="1"> <center>Classificação</center> <hr> <? include "painel.php"; ?> </font> </td> </tr> </table> <br><br> <table width="200" border="0" cellspacing="10" style="border= 1px solid black" class="TD"> <tr> <td align="left"> <center class="TD">Menu <br></center> </tr> <tr> <td align="left"> <hr> <!-- Começa a tabela 1 dentro da outra tabela --> <table width="150" border="0" cellspacing="10" style="border= 1px solid black" class="TD" align="center" bgcolor="#FOFOFO" class="TD"> <tr> <td align="left"> <font face="Arial, Helvetica, sans-serif" size="1"> <center>Classificação</center> <hr> <a href="index.php">:: Paginia Inicial <br> </a> <a href="fale_comigo.php">:: Fale Comigo <br> </a> <a href="enquete.php">:: Enquete </a> </font> </td> </tr> </table> <!-- FIM DA 1 TABELA --> <!-- Começa a tabela 2 dentro da outra tabela --> <br><br> <table width="150" border="0" cellspacing="10" style="border= 1px solid black" class="TD" align="center" bgcolor="#FOFOFO" class="TD"> <tr> <td align="left"> <font face="Arial, Helvetica, sans-serif" size="1"> <center>Classificação</center> <hr> <a href="index.php">:: Paginia Inicial <br> </a> <a href="fale_comigo.php">:: Fale Comigo <br> </a> <a href="enquete.php">:: Enquete </a> </td> </tr> </table> <!-- FIM DA 2 Tabela --> </td> </tr> </table> </body> </html>painel.php<?php if($acao == "logout"){ session_start("atlogin"); session_destroy(); header("location:index.php?123=logout"); } include "config.php"; if($acao == "logar"){ session_start("atlogin"); if(session_is_registered('info_login') and (session_is_registered('info_senha'))) { session_destroy(); } //conecta(); $rnome=ereg_replace(" ","",("$nome")); $rsenha=ereg_replace(" ","",("$password")); $sql="SELECT * FROM atlogin where login='$rnome' and senha='$rsenha'"; $resultado=mysql_query($sql); $num_row=mysql_num_rows($resultado); if($num_row ==1) { $login_info=mysql_fetch_array($resultado); $info_login=$login_info['login']; $info_senha=$login_info['senha']; @mysql_free_result($resultado); session_start("atlogin"); session_register('info_login'); session_register('info_senha'); $login_session = $HTTP_SESSION_VARS["info_login"]; $senha_session = $HTTP_SESSION_VARS["info_senha"]; //header("location:$site\n\n"); //exit; echo "<center>Seja Bem Vindo <b> $login_session </b></center>"; } else{ //print("erro !! Senha ou Usuario Incorreto "); header("location:index.php?error=1"); } } ?>Link para o comentário
Compartilhar em outros sites
6 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.