Re: Page cannot be displayed continues
| From: | Torsten Roehr | Date: | Fri, 30 Apr 2004 08:16:44 +0000 |
| Subject: | Re: Page cannot be displayed continues | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34196@lists.php.net to get a copy of this message | ||
"Matthew Perry" <mwperry@mail.uh.edu> wrote in message
news:4091C0B3.2050200@mail.uh.edu...
> Everyone,
>
> Thank you very much for your advice about not using "PUT". I will use
> GET or POST from now on.
>
> I am, however, failing to understand how to use headers to change pages
> instead of meta tags.
>
> After checking if the user has logged in correctly I do this:
>
> if ($loginGood){
> echo '<meta http-equiv="refresh"
> content="0;URL=welcome.php">';
> }
> else {
> echo '<meta http-equiv="refresh"
> content="0;URL=loginerror.php">';
> }
>
> How can I use a header like the following one to do change pages based
> on variable input?
if ($loginGood){
header('location: welcome.php'); exit;
} else {
header('location: loginerror.php'); exit;
}
Regards, Torsten
>
> Thank you for your time and patience,
> - Matt