Log in

View Full Version : Help in PHP function


lovejenete
12-05-2009, 09:39 PM
Hi!!
Hello friend I have just started the programing web development.
I face the problem with the header function.
The function doesn't redirect. Found this error.

Warning: Cannot modify header information - headers already sent by (output started at /home/kabeet/public_html/flash/page_add.php:4) in /home/public_html/page_add.php on line 72

Please help.

Arianna
12-06-2009, 12:57 AM
You have to make sure that any redirect functions are called /before/ anything is printed via 'echo'. Usually, setting an $article_content variable and only printing at the end will prevent this.

lovejenete
12-06-2009, 03:48 AM
Hi!!
No the code of header is at the begining of the page.
First login will redirect to home page and from home page it will redirect to add page and there I found error.
Thanks in advance.

Arianna
12-06-2009, 08:46 AM
Hmm, that seems weird. Could you post the code for me, please?