Re: Page cannot be displayed continues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Matthew Perry" <mwperry@xxxxxxxxxxx> wrote in message
news:4091C0B3.2050200@xxxxxxxxxxxxxx
> 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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux