Hello,

I'd like to know why this code not work :
case " xxxx ":
        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 "xxxx":
        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

Reply via email to