Re: Password Protect page

From: Date: Fri, 22 Jun 2001 18:09:22 +0000
Subject: Re: Password Protect page
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9750@lists.php.net to get a copy of this message
At 22.06.2001 11:23, you wrote:
I tried but to no avail, I was trying to send the header to redirect if the password in the input box matches the database password but it kept saying that the header was already sent.. I tried Javascript aswell, doing a location.href = "URL" within the "if" statement.
this is not a db issue, when you are using the header() function it has to be the first output sent back to the user, ie. no blank spaces before the <?(php) and no echo's etc. Check that first, and if that doesn't help, try pasting the code so we can try to see the bug... (code is always good when you run into trouble). -- Andreas D Landmark / noXtension Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and then.

« previous php.db (#9750) next »