Merlin
Expert Member
Hi everyone,
I'm a real novice at this, so bear with me please.
How do I, using one main template/base page, include other pages into it via links?
EG: I have a link on my base page to an 'about' section...how do I draw that 'about' info into the main page without having to reload/recompose the main page everytime?
I found this...
...but that only seems to work using ?linkhere after the URL, and I have to edit that section AND the actual links then.
Is there a simple way to use one link, and change the data?
Thanks, N.
I'm a real novice at this, so bear with me please.
How do I, using one main template/base page, include other pages into it via links?
EG: I have a link on my base page to an 'about' section...how do I draw that 'about' info into the main page without having to reload/recompose the main page everytime?
I found this...
Code:
<?php
switch($_SERVER['QUERY_STRING']) {
case 'hello':
include('hello.inc');
break;
case 'about':
include('about.inc');
break;
case 'links':
include('links.inc');
break;
default:
include('main.inc');
}
?>
...but that only seems to work using ?linkhere after the URL, and I have to edit that section AND the actual links then.
Is there a simple way to use one link, and change the data?
Thanks, N.