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 Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.