RE: /?id=home
you would use $_GET['whatever'] to get what they put after "?whatever=" in the url, then you can just use some IF statements to associate that name with a page and include it. (if whatever==page1 then include index2.html or such) You can also include every page in a single php file and store them in variables, then just 'echo' them if whatever is equal to "pageX"
Note: NEVER EVER EVER EVER EVER let users include any page by filename (e.g. include($_GET['whatever']) -- bad idea) or let users echo any variable they want (e.g. echo(eval('$' . $_GET['whatever'])) -- also a bad idea) because you'll get hacked in under a second.
Spoiler: the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
|