Jump to content

Archived

This topic is now archived and is closed to further replies.

newb

headers already sent.

Recommended Posts

[code]
<?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
?>
[/code]

thats my code. i keep getting this:
[quote]
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[/quote]

Share this post


Link to post
Share on other sites
try replacing

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

with this

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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.