-
I have a file called accesscontrol.php and it is a login page. When the user logs in, i have it set to go to protected.php, but when it tries to open it, all the browser says is web site found, waiting for reply, over and over and over again. Does any one know why?
-
what header() code are you using?
-
header("Location: protected.php
-
header("Location: protected.php");
-
It needs to be:
header("Location: protected.php\n");
All header lines should be ended with \n (A newline) and the final header should have two newlines, but I believe PHP handles that for you.
-
PHP handles it for you, so you don't need the \n.