I am having problems with echo'ing the page title! I guess the problem is that the "echo" is before the "$title" in the final output of the page.
I have no idea how to get the "$title" in front of the "echo" command. Can anyone help me???
Here is how I organize my page:
This is the first file that gets called(1.php):
main_article_top.inc:PHP Code:<?php $title = "How to get rich in 5 minutes"; ?>
<?php include("authors.inc"); ?>
<?php $author = "$author1"; ?>
<?php include("main_article_top.inc"); ?>
Here is how to get rich!!
<?php include("main_article_bottom.inc"); ?>
"header.php" contain the title of the page (<title><?php echo $title; ?></title>)PHP Code:<?php include("header.php"); ?>
<?php echo $title; ?><br>
By <?php echo $author; ?><p>
Thanks in advance![]()




Bookmarks