Re: URL redirection

From: Date: Mon, 07 May 2001 18:04:37 +0000
Subject: Re: URL redirection
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51705@lists.php.net to get a copy of this message
<script language="JavaScript"> location = "hello-world.htm"; </script> can be used even if header is already sent! -elias www.eassoft.cjb.net "Jamie Saunders" <webprogramming@jamie-s.co.uk> wrote in message news:5.1.0.14.2.20010506231533.02746598@mail.btinternet.com... > > Hi, > > Is there a PHP function that will redirect the current page to another url? > > e.g. > > if ($varTwo == $varOne) { > > URL redirection code > > } else { > > echo "You stay right where you are!"; > } > > Thanks. > > > Jamie Saunders > Mail: webprogramming@jamie-s.co.uk > Web: http://jamie-s.co.uk > > > -- > 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 (#51705) next »