What code would I put in a PHP document to make it so that the url would be like
index.php?page=2
if(!empty($_GET['page'])){ switch ($_GET['page']) { case 1: include("page 1 url"); break; case 2: include("page 2 url"); break; } } else { include("default page url"); }
There are of course various variations, however, that should start you off.
Now, what would the switch statement do?
select the page.
but you could use if statements or something if you preferred.
http://www.php.net/manual/en/tutorial.forms.php