You can also enable output buffering on your middle page, this will allow you to output data and set cookies, send headers, etc at any point in your script.
You can enable output buffering globally with php.ini, with an .htaccess for specific directories or use the output buffering functions to enable them for just a script or even part of a script. Jason On Sun, 2002-12-29 at 12:29, John W. Holmes wrote: > > >Yeah, you should be using a header() redirect, not a javascript or > META > > >REFRESH redirect... > > > > Well, i tried, but i get an error saying that all the headers > > were > > already sent to the browser. :-P > > I used: > > > > header('Location: http://www.blahblah.com etc'); > > > > > > I placed this header right after all the database writes. > > Well, yeah, the idea is that you don't output anything on the > "middle-man" page, only do your inserts and that's it. > > The error message tells you exactly where the output is starting, if > that's a mystery to you (output started in file.php:2 means line 2 of > file.php). > > ---John W. Holmes... > > PHP Architect - A monthly magazine for PHP Professionals. Get your copy > today. http://www.phparch.com/ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php