Re: Whats the "php" way of redirecting to a new .php file please?

From: Date: Sat, 26 Aug 2000 18:05:56 +0000
Subject: Re: Whats the "php" way of redirecting to a new .php file please?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13800@lists.php.net to get a copy of this message
Eric Carlson wrote:
(Newbie alert!) Say I'm in one .php file and I know when a certain test is true I just want to get out and load another file, just like the user had clicked an <a href> or clicked the submit button of a <form>. Whats the smart way to do it please? Conceptually I need: <?php if ($thevalue == "Go") {
      gotopage("newpage.php");
} ?> header("Location: http://domain/page");
Burn this into your brain: DO NOT PUT ANY OUTPUT BEFORE THIS FUNCTION! :) - Julie -- +------------------------------------------------+ | Julie Meloni (jcm@i2ii.com) | | Tech. Director, i2i Interactive (www.i2ii.com) | | | | "PHP Essentials" & "PHP Fast & Easy" | | http://www.thickbook.com/ | +------------------------------------------------+

« previous php.general (#13800) next »