Hi all,
I have a little problem to redirect/load a page from php code...
My problem is the following :
I check some value in php code, and depending of the value, I want to load one result page...
<?
switch ($value) {
case 'foo':
...
break;
case 'bar':
header('location: profil.php?name='.$option');
mysql_close($db);
exit();
break;
}
?>
on my local easyphp-apache, it seems to work but once on a profi apache, it sucks...I got weird warning like that
Warning: Cannot add header information - headers already sent by (output started at /var/www/free.fr/11/l/o/r/d/lordkraken666/godwarriors/combat.php:16) in combat.php on line 152
what's happen ? and how could I resolve my problem ???
many thanks