Using the following code :
<?php
$defaultinclude = 'include/1.inc.php';
$includedir = 'include/';
$filename = $includedir . $_REQUEST['id'] . '.inc.php';
if (file_exists($filename)) {
include $filename;
} else {
include $defaultinclude;
}
?>
<!--- end code -->
and the following links :
<a href="test.php?id=2">ID 1 </a><br>
<a href="test.php?id=3">ID 2 </a><br>
Works great, exactly what I am looking for... Except, I would like to make the link appear into an iframe.
Simply placing the target frame in the link doesn't seem to work.
ie
<a href="test.php?id=1" target="_inline">ID 1 </a><br>
Help on this or a better routine for this type of id referencing navigation is greatly appriciated!
The current working file can be viewed at http://slipspace.net/test.php
I just got my first couple of PHP/mySQL books in the mail the other day, so please bear with me!
Thanks,