How to catch _escaped_fragment_ ?

if(!isset($_POST['_escaped_fragment_'])) {
include('layouts/template.php');
}
else {
 $page = $_POST['_escaped_fragment_'];
include("components/$page/index.php");
}


Make an ajax version of the site, but for indexing you need something with post parameter _escaped_fragment_ issued html page. Made here such condition, but if this is not giving me a option, why?
September 26th 19 at 06:12
2 answers
September 26th 19 at 06:14
Solution
Try instead of $_POST to catch the $_REQUEST.
If it doesn't - add to bottom of file command print_r($_REQUEST) or var_dump($_REQUEST) and see there is at least some data.
September 26th 19 at 06:16
Maybe because you are doing a POST request?

Find more questions by tags PHP