Jump to content


Photo

headers already sent.


  • Please log in to reply
2 replies to this topic

#1 newb

newb
  • Members
  • PipPipPip
  • Advanced Member
  • 454 posts

Posted 26 August 2006 - 11:27 PM

<?php
// *** Is the user already logged in? ***
if ( $action == login || $action == '' ) { 

	if(isset($_SESSION['username'])) 
	{
	header ("Location: http://p16draft.net/modules.php?name=cpanel&action=profile");
	} 
	else
	{
	// Begin Login Code
?>

thats my code. i keep getting this:

Cannot modify header information - headers already sent by (output started at /home/xx/public_html/template/default/header.php:8) in /home/xx/public_html/modules/cpanel/index.php on line 41



#2 AdRock

AdRock
  • Members
  • PipPipPip
  • Advanced Member
  • 911 posts

Posted 26 August 2006 - 11:35 PM

try replacing

header ("Location: http://p16draft.net/modules.php?name=cpanel&action=profile");

with this

echo" <meta http-equiv='refresh' content='0;url=http://p16draft.net/modules.php?name=cpanel&action=profile'>";

If your topic has been solved, please mark the topic as SOLVED.

This helps others from identifying which topics need help still

#3 newb

newb
  • Members
  • PipPipPip
  • Advanced Member
  • 454 posts

Posted 26 August 2006 - 11:38 PM

worked, thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users