You should not add any output after doing a "Location:" redirect. It's
recommended to add an exit() after the header(). Proper browsers should
halt their renderer and redirect when they find a Location: header.
HTH,
Vahan
J. Alden Gillespy wrote:
I'm creating an e-commerce website, and I just ne
--- "J. Alden Gillespy" <[EMAIL PROTECTED]> wrote:
> I'm creating an e-commerce website, and I just need
> clarification as to whether a MySQL query is
> considered as "browser output".
It is not. However, a MySQL error is indeed output. Make
sure your query is successful.
My suggestion would be
I'm creating an e-commerce website, and I just need clarification as to
whether a MySQL query is considered as "browser output". I ask because
I have the following code, but the cookie isn't being set:
if ($op == "login") {
if (!isset($username) && !isset($userpass)) {
} else {
3 matches
Mail list logo