0

Im trying to include php(html) file in my website. All pages are loaded with jquery/ajax into a div. Im trying to load another website on my server into the div using php include, For my clients to transfer files to my administrative team. My code isnt working. and How do I keep the website inside the div when the users start clicking around inside of the client portal (web site on my server) without forwarding them out of the window. I dont want to use an iframe so can this be done with jquery or javascript?

Visit my website for a live view https://trillumonopoly.com

Heres the code:

<div id="page1"></div>
<script>$("#page1").load("https://trillumonopoly.com/clients/index.php body");</script>
</div>

1 Answers1

0

You can just use the PHP include command.

<?php include "file.php" ?>
Tristian
  • 1
  • 2