joecooper Posted January 14, 2008 Share Posted January 14, 2008 if (mysql_num_rows($sqlresult) > 0){ //if more than 0 rows are returned, the details are connect, they may login $_SESSION['loggedin']="TRUE"; //set the global session varible for loggedin to true (to tell other pages they are logged in) $_SESSION['email']=$email; //set global session varible for their email for pages to get their email header('location: frame.php?section=members'); //they can now see the members section }else{ //they have entered wrong details... make them try again $msg="Your login details were incorrect. Please try again."; header('location: frame.php?section=login'); } for some reason, they dont get directed to frame.php?section=members when they login. it does nothing! Quote Link to comment https://forums.phpfreaks.com/topic/85955-something-up-with-header/ Share on other sites More sharing options...
monkeytooth Posted January 14, 2008 Share Posted January 14, 2008 is this code above the <html><head></head> tags? Quote Link to comment https://forums.phpfreaks.com/topic/85955-something-up-with-header/#findComment-438836 Share on other sites More sharing options...
PFMaBiSmAd Posted January 14, 2008 Share Posted January 14, 2008 Check your web server log for errors, such as "cannot send header, "output started at ..." to find out why the header() is not working. Quote Link to comment https://forums.phpfreaks.com/topic/85955-something-up-with-header/#findComment-438877 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.