Re: redirecting without headers or meta tags or javascript

From: Date: Tue, 03 Apr 2001 07:20:03 +0000
Subject: Re: redirecting without headers or meta tags or javascript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46781@lists.php.net to get a copy of this message
if you're trying to redirect with something like header, then you need to do that redirection before any output is sent to the browser...(note, ANY output, likes SPACES) look at www.php.net/header if you're interested... jack Justin French wrote: > > hi, i'm in the body of a html page, and I'd like to > redirect to a new URL in an if() statement. > > I *could* re-write the whole page so that the test > is in the head, and use meta tags to refresh, but > i'd rather not... the code will be heaps cleaner > without it. > > thanks > > Justin French > > -- > 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 (#46781) next »