[thelist] PHP / MySQL User Login System
Jake Aust
mail_lists at jakesdiner.com
Wed Feb 27 21:49:01 CST 2002
Cool! That's what I'm talking about.
Now...do the "includes" have to be php files or can they be just .html
files?
Jake
On 2/27/02 7:24 PM, "Andrew Forsberg" <andrew at thepander.co.nz> wrote:
>> Is it possible to have all the links from my "home page" link back to the
>> "home page" with a variable tagged on that defines which content to display
>> and then get the home page to display the requested page instead of the home
>> page?
>
> Sorry, misread this option: yes you can do this, and in all sorts of
> ways. Perhaps the simplest would be to use a switch on the home page:
>
> // do your session stuff and authentication here
>
> if ($authenticated) {
> switch ($page) { // where $page is the page to display
> case "this_site":
> include '/whatever/whatever/whatever.php';
> break;
> case "another_site":
> include '/blah/blah/blah/blah.php';
> break;
> // etc...
> default:
> include '/my/home/page.php';
> break;
> } // end switch
> } else {
> include '/my/home/page.php';
> }
>
> HTH
> Andrew
>
> --
More information about the thelist
mailing list