Re: redirect pages

From: Date: Tue, 27 Feb 2001 04:48:50 +0000
Subject: Re: redirect pages
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-41793@lists.php.net to get a copy of this message
On Tue, 27 Feb 2001 15:15, David Robley wrote: > On Tue, 27 Feb 2001 14:58, Peter Houchin wrote: > > > can some one offer a suggestion please ... i have a > > > > if ($update) { > > $result=foo; > > } > > > > in that if statement i want to redirect them to another page after it > > has processed the result .. > > i tried having using > > > > if ($update) { > > $result=foo; > > echo "<META HTTP-EQUIV=\"refresh\" > > CONTENT=\"1;page.php\">"; > > } > > > > but to no avail .. > > > > any suggestions ? > > > > Peter Houchin > > if ($update) { > $result=foo; > header("page.php"); I mean, of course header("Location: page.php"); Must teach fingers to wait for brain to engage :-) > } > > and make _absolutely_ sure that your script doesn't even have a white > space _anywhere_ before issuing the header. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#41793) next »