Hi Friends... I have one doubt about ..How to recover "header already sent" error when same page contains two or more headers with if condition. Please gave some suggestion for me... Thanks & Regards Kiruthika.M
There shouldn't be anything echoed before a header statement executes. In case it is not possible then you can call ob_start() in the start so output is buffered and not printed until the page execution is complete. This way nothing gets printed and header function works.
ob_start(); at the top of the page and in the between you could flush output buffer with: ob_flush();