I am building a simple admin area for my site and I want the URLs to look somewhat like this:
http://mysite.com/admin/?home http://mysite.com/admin/?settings htt
Is not the most "elegant" way to do it but the simplest form to answer your question is..
if (isset($_GET['home'])): # show index.. elseif (isset($_GET['settings'])): # settings... elseif (isset($_GET['users'])): # user actions.. else: # default action or not... endif;