Re: Header("Location: some.url.com")

From: Date: Tue, 26 Sep 2000 00:31:12 +0000
Subject: Re: Header("Location: some.url.com")
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-17452@lists.php.net to get a copy of this message
I think the point was to do specific processing (data validation, etc.) and as a result of that, send a header(). So, unless you're doing all the processing on the client-side, a client-side solution doesn't do the job. Steve Farmer wrote:
Hi Guys, try a javascript "location.replace" works anywhere on the page HTH Steve At 4:03 PM -0700 25/9/00, Julie Meloni wrote: Matt wrote:
Does anybody know a way of executing this sort of code after other
things
have been executed on a page? Traditionally you have to do it at the top
of
the page, but I want to be able to do stuff and then forward people to a
new
page. Any ideas?
You can. Just don't _print anything to the screen_ before it.
-- +------------------------------------------------+ | Julie Meloni (jcm@i2ii.com) | | Tech. Director, i2i Interactive (www.i2ii.com) | | | | "PHP Essentials" & "PHP Fast & Easy" | | http://www.thickbook.com/ | +------------------------------------------------+

« previous php.general (#17452) next »