darksniperx Posted July 8, 2010 Share Posted July 8, 2010 Hi, I am trying to load html page into div via link. here is my code. <a href="?p=index">Main</a> <a href="?p=history">history</a> <div id='content'> <?php if(isset($_GET['p'])) { $p = $_GET['p']; include($p.'.htm'); } else { include('index.htm'); } ?> </div> But the thing nothing happens, I have tried to echo, and that doesn't even get printed out. Link to comment https://forums.phpfreaks.com/topic/207189-getting-html-loaded-in-div-container-via-link-code-not-working/ Share on other sites More sharing options...
darksniperx Posted July 9, 2010 Author Share Posted July 9, 2010 nvm I got it working Link to comment https://forums.phpfreaks.com/topic/207189-getting-html-loaded-in-div-container-via-link-code-not-working/#findComment-1083407 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.