Re: redirect pages
| From: | Ankur Verma | Date: | Tue, 27 Feb 2001 04:44:01 +0000 |
| Subject: | Re: redirect pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41791@lists.php.net to get a copy of this message | ||
try the header function
http://www.php.net/manual/en/function.header.php
for ex, if you want the user to be redirected to abc.php3 file, then use
this function call
header("location:abc.php3");
exit;
do take all the precautions subscribed for the header function in the
manual.
hope that helps
best regards
Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India
----- Original Message -----
From: "Peter Houchin" <peterh@vfsa.com.au>
To: "PHP MAIL GROUP" <php-general@lists.php.net>
Sent: Tuesday, February 27, 2001 9:58 AM
Subject: [PHP] redirect pages
> 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
> Sun Rentals
> peterh@sunrentals.com.au
>
>