Re: [PHP] Cookie, header, output problems

2003-01-14 Thread Vahan Yerkanian
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

Re: [PHP] Cookie, header, output problems

2003-01-14 Thread Chris Shiflett
--- "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

[PHP] Cookie, header, output problems

2003-01-14 Thread J. Alden Gillespy
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 {