Jump to content

Archived

This topic is now archived and is closed to further replies.

nvdw

include/reload

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.