Re: Re: include help please
| From: | LoonySalmon | Date: | Thu, 31 Jul 2003 22:04:53 +0000 |
| Subject: | Re: Re: include help please | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157836@lists.php.net to get a copy of this message | ||
and btw, this is my code now:
<?php
require 'files.inc.php';
if (isset($page)) {
include $$_GET['page'];
} else {
$page = $main;
include $page;
}
?>
"Loonysalmon" <l33trus@hotmail.com> wrote in message
news:20030731220331.71535.qmail@pb1.pair.com...
> well crap, it turns out that i'm back to step 1, but with more code
> it won't load up the other files now when defined through the url. i
guess
> that there is something wrong, but what could it be?
>
>
>
> "Loonysalmon" <l33trus@hotmail.com> wrote in message
> news:20030731213327.36580.qmail@pb1.pair.com...
> > if (isset($page)) {
> > include $$_GET['page'];
> > } else {
> > $page = $home;
> > include $page;
> > }
> >
> > would that be right?
> > or should i use
> >
> > if (isset($page)) {
> > include $$_GET['page'];
> > } else {
> > include $home;
> > }
> >
> > hopefully that's right. if so, pretty good for a n00b
> >
> >
>
>