Re: Any PHP equivalent of Macromedia ColdFusion's location tag?

From: Date: Wed, 27 Mar 2002 05:09:18 +0000
Subject: Re: Any PHP equivalent of Macromedia ColdFusion's location tag?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-90314@lists.php.net to get a copy of this message
Hi, Thanks for the reply. I saw this as well in the mailing list archives, but everyone is saying you cannot output ANYTHING before calling header. Unfortunately, I'm calling this at the end of a process, so it won't work. It tells me I've already sent out header information. I've basically created a single PHP page with a form. When the form is submitted, it submits to itself. It checks if the form is submitted, and then goes to mail the contents to someone. After mailing, I want to go to a Thank You page. I want to get away from this PHP page, because I don't want a person refreshing the page and causing the PHP page to submit again. Thus, is there something else I can do? Or am I just not seeing this? Thanks, Stephen ----- Original Message ----- From: "James" <james@aipmedia.com.au> To: "webapprentice" <webapprentice@onemain.com> Sent: Tuesday, March 26, 2002 10:20 PM Subject: Re: [PHP] Any PHP equivalent of Macromedia ColdFusion's location tag? > header("Location: http://www.google.com"); > replace that url with the page you want it to go to > >

« previous php.general (#90314) next »