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
The PHP code:
switch($_GET){ case !empty($_GET['home']): // code here break; case !empty($_GET['settings']): // code here break; default: // code here break; }