Re: redirect pages

From: Date: Tue, 27 Feb 2001 04:45:32 +0000
Subject: Re: redirect pages
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41792@lists.php.net to get a copy of this message
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"); } 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 (#41792) next »