Try: sleep(3); $myurl = "http://jsfree.com"; print("<script language='JavaScript'>window.location = '$myurl'; </script>"); Works for me, Jeremy Schreckhise "Jim MacDiarmid" <jim.macdiarmid@xxxxxxxxxxx> wrote in message news:E8.C3.29438.2ACFCF14@xxxxxxxxxxxxxxx > Is there a way to programmatically add timed redirection to a page? I have > a page with a form on it. Once it's submitted and the data is updated in > the database correctly, I'd like to present a status page then wait for say > 3 seconds before redirecting them to some other URL. > > I know you can do this with window.location = 'targetURL' but not sure how > to add it. I was thinking that it might have to be added to the header, but > I'm using the same header template for each page. > > Any ideas? > > TIA, > > Jim > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php