Hello folks, It's my first post here.
I am currently working on a page where I have made a header and a footer and have a bunch of html text files that I'd like displayed in a DIV called 'stage' for example.
since I have only 3 unique php files with their own header/footer and about 50 of these html text files I'd like to figure out a way to get a URL sort of like.
example.com/main.php?content=textfile1.html
example.com/nav.php?content=textfile2.html
where the php file is the header/footer file with a DIV named 'stage' inside of it and I'd like to display the html in textfile1.html inside the stage div. I'm thinking of using php include but i dont know how that would work since I'd have to already specify what I want to include in the php whereas in this case I'd like to specify what I want to include from the URL. I don't know where to do begin on this. Thank you in advance for your help.