from index.html, I submit to submit to 1.php, solve form tasks and then need to return to .html. while I was on Denver it was solved like this:

include("../../index.html"); 

Moved to Open Server and include () stopped working. Achieved a transition like this:

 include($_SERVER["DOCUMENT_ROOT"] . "/index.html"); 

But at the same html is loaded without styles and remains at the address of the php file. I tried:

 header ($_SERVER["DOCUMENT_ROOT"] . "/index.html"); 

html is also loaded without styles and remains at the address of the php file. Tell me how to fix it?

    2 answers 2

    Maybe instead of adding a file with all the markup to perform auto go to the address?

    Like that:

     <meta http-equiv = "Refresh" CONTENT="0; URL = /index.php"> 

    In CONTENT, the first value is the timer in seconds, the second is the reference :)

    And yes, GET can be passed through it.

    More can be smoked here .

      If the php did not display the code then add

       header("Location: .."); 

      If you need to make a link then do it through

       <a href="/">вернуться</a>