I have 3 files: index.html and 2 index.php. Currently, data is passed between the pages via URL parameters and PHP. What I need is to combine index.html file and index.php file into one index.html file and to make data pass between the pages via JS.
For example, there is such code in index.php that should be transferred to index.html
<body data-info="<?php echo $_GET["info"] ?>">