I noticed on a website the pages are not <!-- m --><a class="postlink" href="http://yourdomain.co.uk/page1.htm">http://yourdomain.co.uk/page1.htm</a><!-- m --> or <!-- m --><a class="postlink" href="http://yourdomain.co.uk/page2.php">http://yourdomain.co.uk/page2.php</a><!-- m --> etc.
it is <!-- m --><a class="postlink" href="http://yourdomain.co.uk/?id=page1">http://yourdomain.co.uk/?id=page1</a><!-- m -->
how do do I do the ?id= links/pages? anyone who knows please replyHi, I'll continue this thread since it's in the appropriate forum now.
Check out this thread
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=32364or">http://www.htmlforums.com/showthread.ph ... id=32364or</a><!-- m --> this:
<?
if (!isset($id)) {
include "main.php";
} else {
$filetouse = "$id.php";
if (file_exists($filetouse)) {
include $filetouse;
} else {
include "404.php";
}
}
?>
put it in index.php for instance and main.php would be included as your main page. link it with index?id=something here ... if the file you try to link to doesn't excist 404.php will be included instead (if you *have* a file called 404.php, that is..
)
it is <!-- m --><a class="postlink" href="http://yourdomain.co.uk/?id=page1">http://yourdomain.co.uk/?id=page1</a><!-- m -->
how do do I do the ?id= links/pages? anyone who knows please replyHi, I'll continue this thread since it's in the appropriate forum now.
Check out this thread
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=32364or">http://www.htmlforums.com/showthread.ph ... id=32364or</a><!-- m --> this:
<?
if (!isset($id)) {
include "main.php";
} else {
$filetouse = "$id.php";
if (file_exists($filetouse)) {
include $filetouse;
} else {
include "404.php";
}
}
?>
put it in index.php for instance and main.php would be included as your main page. link it with index?id=something here ... if the file you try to link to doesn't excist 404.php will be included instead (if you *have* a file called 404.php, that is..
