and btw, this is my code now:

<?php
require 'files.inc.php';

if (isset($page)) {
include $$_GET['page'];
} else {
$page = $main;
include $page;
}
?>







"Loonysalmon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > 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
> >
> >
>
>



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

Reply via email to