Sam
29-03-2007, 02:58 PM
Im having this really irritating problem where , im trying to redirect to a page but im getting the error
'Warning: Cannot modify header information - headers already sent by (output started at /home/blah/blah/blah/) in /home/blah/blah/blah/ on line 23
'
I have login.php which contains all the PHP (When the user logs in it creates a session and tries to redirect to interface.php which contains functions.) and login_main.php which has the HTML and some other bits and bobs. The form in the html uses
<form action="login.php" method="post">
I cant seem to find a way around it. Whenever i try to use header( 'ocation: page.php'); i get that error.
Its probably a silly mistake but. Advice?
'Warning: Cannot modify header information - headers already sent by (output started at /home/blah/blah/blah/) in /home/blah/blah/blah/ on line 23
'
I have login.php which contains all the PHP (When the user logs in it creates a session and tries to redirect to interface.php which contains functions.) and login_main.php which has the HTML and some other bits and bobs. The form in the html uses
<form action="login.php" method="post">
I cant seem to find a way around it. Whenever i try to use header( 'ocation: page.php'); i get that error.
Its probably a silly mistake but. Advice?