.oO(RichardODreamweaver)
>I am just starting a new site (
http://www.freecrm.zymichost.com
in php with
>back end MySQL data
>
> I have been advised that you should only have one main
index.php file and then
>include main content based on the variable posted.
It's one possible way, but definitely not the only one. So
IMHO it's a
rather bad advice.
> e.g.
>
> if $p == "Register" then link /index.php?p=Register
> elseif $p=="Login" then link /index.php?p=Login
> else link /index.php?Home
And bad code too. If you want to go that route, use a lookup
table.
> blah de blah - you get the message.
>
> The page I have has a header, main content and footer
include - all of which
>work great but I am having doubts that further down the
line, I will start to
>get problems with passing additional variables.
>
> Is this method recommended or should I create standard
seperate pages based on
>a template?
I would not recommend it unless you know exactly what you're
doing. It
can make maintenance more complicated and leads to really
ugly and user-
unfriendly URLs. You don't want that.
Additionally you won't get proper access statistics from such
a setup,
because for a logfile analyzer there's only one page.
Both problems can be solved, but that requires even more
work. So for
now separate pages would be the better choice.
Micha