Not that difficult when you think about it and RTFM.
if($_GET['page']=='links')
{ // Do links stuff
}
elseif($_GET['page']=='contact')
{ // Do contact stuff
}
Etc. If you're feeling really adventurous you could use switch statements and include files.