If you add ob_start(); at the start of your code, then you will be able to set Headers anywhere in your page.
Peter > Per Waagen wrote: > > > Warning: Cannot add header information - headers already sent by (output > > started at /home/p/pe/perphp/public_html/login.php:4) in > > /home/p/pe/perphp/public_html/login.php on line 44 > -- > Avi Schwartz > [EMAIL PROTECTED] > > "I have to share the credit. I invented it, but Bill made it > famous." - IBM engineer Dave Bradley describing the > control-alt-delete reboot sequence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]