Re: problem with Header("Location: home.php");
| From: | Andre Dubuc | Date: | Thu, 09 Sep 2004 12:19:07 +0000 |
| Subject: | Re: problem with Header("Location: home.php"); | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196207@lists.php.net to get a copy of this message | ||
On Thursday 12 August 2004 07:48 pm, CBharadwaj wrote:
> Hello,
>
> In conection.php I have written.
> SESSION_ START();
^
Get rid of extra space and it should work
Hth,
Andre
> on successful login I am registering a session variable.
> SESSION_REGISTER("userId");
>
> on login failure I am redirecting to home page.
> Header("Location: home.php");
>
>
> the following error occuring in above line.
> Warning: Cannot modify header information - headers already sent by
> (output started at E:\PHPMySql scripts\bugtrack\connection.php:3)
> in E:\PHPMySql scripts\bugtrack\index.php on line 117
>
> the connection file I have included in every page.
> why this error is occuring?
>
>
> Bharadwaj