Results 1 to 2 of 2
Aug 26, 2007, 20:19 #1
- Join Date
- Nov 2004
- 0 Post(s)
- 0 Thread(s)
Include statement and CSS... help appreciated
Here is my dilemma. I have a PHP template file which has a header and a footer defined by CSS code. I also have a content section which is dynamically filled (using an include) in depending on PHP code determing what link a user clicks.
echo '<div id="main_text">';
For example, on my $link I automatically generate links for each letter of the alphabet. Then if a user clicks one letter it grabs records from a database. This works, however when a user clicks a letter it opens in its own screen and doest open within the template.
Is there any way around this, anyone have any clue what I am even trying to say??
Aug 26, 2007, 20:32 #2
- Join Date
- Jul 2005
- West Springfield, Massachusetts
- 196 Post(s)
- 2 Thread(s)
I think you may be a bit confused as to what include does. It is not meant to be used as a type of frame. It is sort of like whatever is in the include file is inserted into the code where the include line is. This happens before the page is rendered. After the page is rendered it behaves like any HTML page. Links work like they would in a static HTML page.