Stick something like this in your html <head></head>:
<meta HTTP-EQUIV="REFRESH" CONTENT="5; URL=blah.php"> Location won't work because you've already sent output to the browser. Ian On Wed, 2004-02-18 at 07:19, ajay wrote: > hi! > > after having trawled through many google articles, i've been told that the best > way to redirect a person is using header("Location:url"); > > the problem is, i have form that is posted to another php script. This script then > processes the form and then writes up a html page and includes in that page any > warnings etc. > i want the user to have say 5s to read that page and then be redirected to > another page. > so i have something like > //process form > //write page > sleep(10); > header("Location:blah.php"); > > the problem is i get an error when the script gets to the header part, the error > being > Warning: Cannot modify header information - headers already sent by (output > started at c:\program files\apache > group\apache\htdocs\usydbasketball\subscribe_mailing_list.php:6) in c:\program > files\apache group\apache\htdocs\usydbasketball\subscribe_mailing_list.php on > line 67 > > so how do i workaround that? > > thanks > > regards > > -- > ajay > --------------- > Who Dares Wins > > ------------------------------------------------- > This mail sent through IMP: www-mail.usyd.edu.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php