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? Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.