It's much simpler than that. Anything after a ? that you see in the URL is where variables that are passed to a server-side PHP (or Perl, or ASP, etc.) script. Variables in the URL are called GET variables. The two ways to pass variables to a server-side script, like PHP, are through POST and GET.
Variables in the URL (GET variables) are separated by &. So, if the URL was something like:
http://www.example.com/page.php? foo= hello& bar= world
This would pass the two variables foo and bar to the server-side script page.php, where foo would be equal to hello and bar would be equal to world.
So, to answer your question, they would use a GET variable such as id to pass a number or word to the server telling it what page to display.
I've used this on a site I built, go to http://darcrobotics.org/index.php?p=about and you will see that its content is different than if you go to a page with a different variable, for example http://darcrobotics.org/index.php?p=home
There's a tutorial on POST and GET variables in PHP here: http://www.tizag.com/phpT/postget.php
Hope this helps!
~Trey
__________________
Decatur-Austin Robotics Coalition (DARC) - Please login or register to view this content. Registration is FREE
Last edited by treyk4; 10-28-2009 at 10:23 PM..
|