Do you mean make it "index.php?page=about" make it include about.php?
<?
$file = "pages/".$_GET['page'].".php";
if (file_exists($file)) { include ($file); }
else { print "404 error" }
?>
Then you would make a directory called "pages" and put about.php in there.
If you felt so inclined, you could even make every single page on index.php.
<html>
<head><title>My Page</title></head>
<body>
<!--// Navigation bar, layout, -->
<!--// and all that good crap goes here -->
<!--// Here's the main table frame of the page. -->
<?
// about
if ($_GET['page'] == "about") {
print "About us<br><br>";
print "blah blah blah blah
} elseif ($_GET['page'] == "projects") {
print "Projects<br><br>";
print "blah blah blah";
}
And so on and so forth.
Sorry for my lengthly and unneeded descriptions....I used to write php tutorials, I guess its a habit
READ IF YOU DON'T KNOW WHAT $_GET[' '] IS:
By the way, $_GET[' '] is means to "get" the value of a certain varibable stored in the url. The word in the [' '] is the variable its value is returned as.
For instance, if the page was "index.php?test=3"
Then
<?
echo $_GET['test'];
?>
Would print "3" on the page.
It can work with multiple variables.
index.php?test=3&testagain=1
<?
$result = ($_GET['test'] + $_GET['testagain']);
echo $result;
?>
This would print "4" on the page.