Re: Redirecting to a URL

From: Date: Tue, 08 Jan 2002 15:29:29 +0000
Subject: Re: Redirecting to a URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79789@lists.php.net to get a copy of this message
Here is $location = "http://www.php.net/"; header ("Location: $location"); Using this istruction take a look if header was already sent in previous code of your page ... Have fun :) Gianni Robert Maccombe wrote: > > Hi, how do I redirect to a different URL, e.g. as a result of an IF > condition being true. I'm basically looking for a PHP version of the ASP - > Response.Redirect("/otherpage.htm") -- ----------------------------------------------------------- Dott. Gianni Del Papa gdelpapa@isa.it hostmaster@isa.it Internet Dept. Manager ISA SpA L.go Garbini 8, I-01100 VITERBO - ITALY Phone +39 0761 277 1 Extension +39 0761 277 23 Fax +39 0761 354050 http://www.isa.it/ -----------------------------------------------------------

« previous php.general (#79789) next »