Answer the question
In order to leave comments, you need to log in
How to display the desired fragment on the site depending on the get request?
There is a script which should display only two pages.
I thought that it would be easier to have one
index.php and , depending on the get request, pull
up
the desired script with: if the request is site.local/index.php?history
then load the hist.php file php include
php include about.php
Answer the question
In order to leave comments, you need to log in
if (isset($_GET['history'])) {
include history.php;
}
Well, make a switch by request uri - enough for your task.
But in general, such questions arise - I strongly advise you to start from the basics, otherwise now you’ll do something that you yourself will be ashamed of later +)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question