Jump to content

headers already sent.


newb

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]
Link to comment
https://forums.phpfreaks.com/topic/18763-headers-already-sent/
Share on other sites

Archived

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

×
×
  • Create New...

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.