Re: redirect

From: Date: Tue, 25 Jul 2000 17:37:34 +0000
Subject: Re: redirect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8106@lists.php.net to get a copy of this message
even better, try <script language="javascript">document.location.replace('destination.php')</script> this will redirect, and won't create an entry in the browser history for the page being redirected from, so if they press back, they'll be taken back to the page which called the script you're diverting them from... chris ----- Original Message ----- From: Keith Avery <kavery@bx.com> To: <php-general@lists.php.net> Sent: Tuesday, July 25, 2000 4:07 PM Subject: RE: [PHP] redirect > > > So how can you redirect from a place deep in the code? > > > What about this javascript solution? > > > echo > "<script>document.location.href='whereiwanttogo.php3'</script>"; > > > Is that abhorrent to the eye and heart? It does create a 'flash' as the page > is loaded, then the user is whisked off again. > > I use a standard 'skeleton' which gets you past the <html> tag.... perhaps I > should rethink this. > > > Keith Avery > Technical Lead > kavery@bx.com > http://www.bx.com > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#8106) next »