i am unable to redirect to a page i keep getting this message... Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\login.php:2) in C:\AppServ\www\login.php on line 20
what do i do? ive heard of buffering can not seem to get that to work either
header('Location: http://www.example.com/');
What it says. Whatever you have on line 20 of C:\AppServ\www\login.php is producing output, and you can't send additional headers after you've started producing output.
Change your code so that it doesn't produce output before headers.
Check line 20 and the lines before that. Perhaps you are printing some output prior to that line. Change your code such that output is only printed after that line.
ok ive even put the header at the top of the page before everything and its still coming up with the error
webcoder wrote:ok ive even put the header at the top of the page before everything and its still coming up with the error
Maybe you have a blank line at the top. That's still output.