Well, I don't know what you mean, I think you mean something like this at the end for your url:
But theres also mod rewrite that'll turn the above to:
So, search mod rewrite.
You can aslo make example#1 like this:
PHP Code:
if($_GET['page'] == "home"){
echo "Home";
}
The you go to:
Code:
site.com/?page=home
Then if you don't really wanna make a million of these ifstatements then you can use switch.
PHP Code:
switch($_GET['page']){
case 'home':
echo 'Home';
case 'contact':
echo 'Contact!';
default:
echo 'Home!';
}
For more info on the switch() function, go to http://us.php.net/switch
Bookmarks