Re: problem with header("Location:home.php")
| From: | Pablo M. Rivas | Date: | Thu, 09 Sep 2004 16:47:23 +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-196228@lists.php.net to get a copy of this message | ||
look the line 3 of connection.php
Good luck
On Wed, 8 Sep 2004 16:43:54 -0700, CBharadwaj
<bharadwaj@ontrackindia.com> wrote:
> Hello,
>
> In conection.php I have written.
> SESSION_ START();
>
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Pablo M. Rivas. http://pmrivas.ipupdater.com
-----------------------------------------------------------