I'm thinking this is a question about one of those things that's so relatively simple you can't find info on it anywhere because everyone assumes you want to know about more complicated things...
What I want to do, basically, is have a page called page.php with a bunch of includes on it for a header and a footer and so on, and one 'variable' include for the body that changes based on the url. So if it's 'page.php?somesection', the page includes 'somesection.html' and if it's 'page.php?anothersection' it includes 'anothersection.html' and if it's just 'page.php' it includes 'main.html'....that general idea. Or maybe, if it's easier, a setup like 'page.php?section=something' instead.
I can figure out how to make this work, but what I haven't been able to figure out how to do, out of this, is extract whatever comes after the ? in the url and assign it to a variable. I know it's got to be something extremely simple because I've seen this on thousands of sites but I haven't been able to figure out how to do it. Some assistance, please?