xwishmasterx Posted April 27, 2011 Share Posted April 27, 2011 this little piece of code doesn't seem to work: if($rs_teamcheck['team_id'] != $team{ header( "Location: http://domain/page.php" ) ;} If I replace the header location part with an echo the output is fine, so why isn't the redirect working? Link to comment https://forums.phpfreaks.com/topic/234836-header-location-using-if-not-working/ Share on other sites More sharing options...
gristoi Posted April 27, 2011 Share Posted April 27, 2011 Remove any whitespace Link to comment https://forums.phpfreaks.com/topic/234836-header-location-using-if-not-working/#findComment-1206814 Share on other sites More sharing options...
xwishmasterx Posted April 27, 2011 Author Share Posted April 27, 2011 thanks for the fast reply, but seems I overlooked html being send before the code.lol topic solved Link to comment https://forums.phpfreaks.com/topic/234836-header-location-using-if-not-working/#findComment-1206815 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.