Are you wanting to do a frames page ??
if so do something like
<?
//this part checks if a value has given to id in the url (ie. id= bit). it means, "if $id ="" (ie nothing) then make $id = 404. if $id has a value it doesn't change.
if ($id ="")
{
$id = "news";
}
?>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="80," frameborder="NO" border="0" framespacing="0">
<frame name="topFrame" scrolling="NO" noresize src="/path/to/header.html" >
<frameset rows=",80" frameborder="NO" border="0" framespacing="0">
<frameset cols="80," frameborder="NO" border="0" framespacing="0">
<frame name="leftFrame" scrolling="NO" noresize src="/path/to/leftnav.html">
<frameset cols=",80" frameborder="NO" border="0" framespacing="0">
<frame name="mainFrame" src="<? echo $id"; ?>.txt">
<frame name="rightFrame" scrolling="NO" noresize src="/path/to/rightnav.html"
</frameset>
</frameset>
<frame name="bottomFrame" scrolling="NO" noresize src="/path/to/footer.html">
</frameset>
</frameset>
The next part is to make the source of the main frame reflect the value of $id.
so echo the value of $id, so we use, echo $id. now when the page is access the <? echo $id ; ?> part is just replaced by the value of $id so if $id= blah, you'd get, src="blah.txt".
Does this makes sense ??
Jamie