After login redirect not working on server.
I am facing some loging problem with my website, after loging, redirec not working on server but its working fine on local host.
I am using this
$alert="<span class=error>Please check the username or password</span>";
i think Location in the header should be lower case, and all this code needs to appear in php tags at the top of the file, if it appears after the head tags it may not work and say something like 'headers already sent'
Originally Posted by php.net
/* Redirect to a different page in the current directory that was requested */
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'mypage.php';
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)