Re: Whats the "php" way of redirecting to a new .php file please?
| From: | jeremy brand | Date: | Sat, 26 Aug 2000 19:17:55 +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-13804@lists.php.net to get a copy of this message | ||
header('302');
header('Location: newpage.php');
exit();
That would be the PHP interpretation of the HTTP way of doing it too.
-jeremy brand
_______________________________________________________________________
GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9
_ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more __
On Sat, 26 Aug 2000, Eric Carlson wrote:
> Date: Sat, 26 Aug 2000 18:59:03 +0100
> From: Eric Carlson <stargazer@blueyonder.co.uk>
> To: php-general@lists.php.net
> Subject: [PHP] Whats the "php" way of redirecting to a new .php file please?
>
> (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");
> }
> ?>
>
> Thanks very much in advance...
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>