newb Posted August 26, 2006 Share Posted August 26, 2006 [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] Quote Link to comment Share on other sites More sharing options...
AdRock Posted August 26, 2006 Share Posted August 26, 2006 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] Quote Link to comment Share on other sites More sharing options...
newb Posted August 26, 2006 Author Share Posted August 26, 2006 worked, thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.