Re: [PHP] Header utilisation problem

2002-08-14 Thread Peter Hicks

Hi Christian

I suspect act_create_new_compte.php is sending headers. Once HTTP headers have
been sent, and HTML has started to be sent, you can send no more headers.

Try using another method of causing the browser to reload - maybe a META tag?
(urgh).


Peter.



On Wed, 14 Aug 2002, Christian Ista wrote:

> Hello,
>
> I'd like to know why this code not work :
> case "  ":
>   include("act_create_new_compte.php");
>   header("Location: ../manager/index.php");
>   break;
>
> I receive this error :
> Warning: Cannot add header information - headers already sent by (output
> started at
> d:\inetpub\wwwroot\website\test2\login\act_create_new_compte.php:31) in
> d:\inetpub\wwwroot\ website\test2\login\index.php on line 18
>
> But when I place header("Location: ../manager/index.php");
> in the end of the file act_create_new_compte.php and remove the line in
> the case, like that :
> case "":
>   include("act_create_new_compte.php");
>   break;
>
> That's work.
>
> Could you explain me that ?
>
> Bye
>
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Header utilisation problem

2002-08-14 Thread Christian Ista

Hello,

I'd like to know why this code not work :
case "  ":
include("act_create_new_compte.php");
header("Location: ../manager/index.php");
  break;

I receive this error :
Warning: Cannot add header information - headers already sent by (output
started at
d:\inetpub\wwwroot\website\test2\login\act_create_new_compte.php:31) in
d:\inetpub\wwwroot\ website\test2\login\index.php on line 18

But when I place header("Location: ../manager/index.php");
in the end of the file act_create_new_compte.php and remove the line in
the case, like that :
case "":
include("act_create_new_compte.php");
  break;

That's work. 

Could you explain me that ?

Bye



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php