For example, index.php?page=1 would display content from page1.php on index.php, and index.php?page=2 would display content from secondpage.php on index.php ... or something like that.
right now I have it set up so ?page=1 echos [FULL HTML CODE OF A PAGE] ... and ?page=2 echos [FULL HTML CODE OF ANOTHER PAGE] ... so editing either layout is a hassle, especially with ALL the php code.
(in summary...) is there a way to echo the source from "blahblah.php" on index.php if ?page=1 and echo the source from "whateverpage.php" on index.php if ?page=2
?
right now I have it set up so ?page=1 echos [FULL HTML CODE OF A PAGE] ... and ?page=2 echos [FULL HTML CODE OF ANOTHER PAGE] ... so editing either layout is a hassle, especially with ALL the php code.
(in summary...) is there a way to echo the source from "blahblah.php" on index.php if ?page=1 and echo the source from "whateverpage.php" on index.php if ?page=2
?