nvdw Posted October 17, 2006 Share Posted October 17, 2006 Hello,I'd like to know if it's possible not reloading the page when you click a link (with includes).This is the code i'm using to include the pages:[table][tr][td][code=php:0]$_GET['page'] = (isset($_GET['page']) ? $_GET['page'] : 'start');$pages= array('start','test');if(!in_array($_GET['page'], $pages)){ include('error.php');}else{ include($_GET['page'].'.php'); }[/code][/td][/tr][/table]This works fine, but i also have a sfw above the content and i don't want it to reload each time you click on a link.I'd also like to do this without frames.I hope someone knows how to do it. Thank you Link to comment https://forums.phpfreaks.com/topic/24220-includereload/ Share on other sites More sharing options...
b_angelr Posted October 17, 2006 Share Posted October 17, 2006 You could use AJAX, i know there is a framework that loads files, or youcould requery the database when you click on a link and change your content Link to comment https://forums.phpfreaks.com/topic/24220-includereload/#findComment-110081 Share on other sites More sharing options...
nvdw Posted October 17, 2006 Author Share Posted October 17, 2006 So it wont work with some kind of include system? Link to comment https://forums.phpfreaks.com/topic/24220-includereload/#findComment-110113 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.