You can't put any Header() function call after any html has been sent. This means you can't put the Header() function in the middle of the body. You have to put the <? as the first 2 characters of the file.
<?
Header("Location: test.php");
?>
<body>
some html if necesary
</body>
ieee488 wrote:
I am running PHP4 with Apache on my Linux box and all seems to work fine.
I haven\'t been able to get the command
header(\"Location: testing.php\"); to work.
The error message is ===>
Warning: Cannot add header information - headers already sent ...
This is what is in the trial file ==>
<body>
<?
header(\"Location: testing.php\");
?>
</body>