简体   繁体   中英

How to include a PHP file in webpage.(keep clicked links inside div)

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>

您可以只使用PHP包含命令。

<?php include "file.php" ?>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM