redirection again.... sorry

From: Date: Fri, 14 Jul 2000 07:10:10 +0000
Subject: redirection again.... sorry
Groups: php.general 
Request: Send a blank email to php-general+get-6602@lists.php.net to get a copy of this message
hi list, i am having a redirection problem again.... heres the code.... <? session_start(); global $uid,$ID,$row,$passwd,$linkid; require("config.php"); if($ID==""){ //check login and show his profile if(CheckLogin($uid,$passwd)==0){ $ID=session_id(); if(log_user()==1){ switch($linkid){ case 1: header("location:../search/searchform.html"); break; case 2:break; case 3: header("location: news.html"); break; case 4: header("location: index.html"); break; case 5: header("location: world.html"); break; case 6: header("location: help.html"); break; case 7: displayUserPage($ID); break; case 8: header("location:coffeehouse.html"); break; default: echo "Something wrong<br>"; } //echo "success...<br>"; } else{ echo "<br> not logged .. contact system admin"; } } else { displayErrorPage(); } } else{ displayUserPage($ID); } ?> below is the config.php file.. <? $dbhost="localhost"; $dbname="New"; $dbuser="subhra"; $dbpasswd="asdfg"; $dbtable="NewData"; $dbauthusertable="AUTH_USER"; $dbmaster="NewMyData"; $dblog="AUTH_USER" ?> i am not echoing anything in Checklogin() or in log_user() the warning is in line 12. Warning: Cannot add header information - headers already sent by (output started at config.php:12) in /home/subhra/public_html/php/auth/show_profile.php on line 12 please i am stuck ... someone suggested to change META-EQUIV or something .. i am not sure ... please advice... thanx in advance.. subhro

« previous php.general (#6602) next »