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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.