Re: Timed redirection

From: Date: Mon, 31 Jan 2005 17:57:50 +0000
Subject: Re: Timed redirection
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-25494@lists.php.net to get a copy of this message
Try: sleep(3); $myurl = "http://jsfree.com"; print("<script language='JavaScript'>window.location = '$myurl'; </script>"); Works for me, Jeremy Schreckhise "Jim MacDiarmid" <jim.macdiarmid@comcast.net> wrote in message news:E8.C3.29438.2ACFCF14@pb1.pair.com... > 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 >

« previous php.windows (#25494) next »