You send some caracter (even return) to the browser. Try to put the header("location:" . $url); on the firs line of the script.
-- Best regards, George Nicolae IT Manager ___________________ PaginiWeb.com - Professional Web Design www.PaginiWeb.com "Jack Kelly Dobson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > Anyone know how to have a script re-direct the browser to a URL cleanly? > > I've tried using header("location:" . $url); but I'm running into a problem > with a server error saying header data was already sent from "some line in > the script that was running" as if the new url is being opened after a > header has already been sent. > > All I want to do is have the script stop it's execution and open another > page. > > Any ideas? > > j- > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php