After stepping away for a minute, the big picture question is...
If I do it the way I am trying, by putting the code you mentioned into place in my index, I still have to create 160 pages that are still the index, so I'm in the same spot.
What I am trying to do is create one index page, and convert the other pages that currently all include a banner nav footer, to a simple table with content. I want to call these content tables into the new index. At the moment I have one index page that has the banner etc, and I've put your code in where I want the new page, call it research2.php into.
How do I have just one index, and call when a link is clicked, that the research2 or any other page is called up, so that these pages aren't dependent on having the banner, etc?
If I create this page, I still have to create 160 pages like it.
http://www.ucsf.edu/cnba/Center/index.php?p=research2.php
This is the table I am calling into in my index:
<TABLE cellSpacing=0 cellPadding=10 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top class=headline> <DIV align=center>
<h2> </h2>
</DIV>
<?php
if($GET['p']=="page1"){
include("research2.php");
}
else if($GET['p']=="page2"){
include("research2.htm");
}
else if($_GET['p']=="page3"){
include("page3.php");
}
else {
include("default.php");
}
?></TD>
</TR>
</TBODY>
</TABLE>
I'm miissing something big, and doing my best to explain it.
Your help is much appreciated.
Adam