Jump to content

include/reload


nvdw

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
Link to comment
https://forums.phpfreaks.com/topic/24220-includereload/
Share on other sites

Archived

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

×
×
  • Create New...

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.