Posted by Greg Scharlemann on 11/11/05 22:12
Does the redirect statement:
header(Location:"http://www.newpage.com");
need to come before certain statements?
I've setup a login page and try to redirect a user once they have
logged in (after I set the appropriate $_SESSION value) but I get the
following error:
Warning: Cannot modify header information - headers already sent by
(...)
If I comment out the header everything works, I just don't get back to
the page I was on when I log in.
Thanks, Greg
Navigation:
[Reply to this message]
|