![]() |
Please phpelp... multiple includes..
I am trying to put this thing together,, It's in all pieces.
Code:
<?php What do I need to do so that header.htm is first, then the above, then the footer?? header.htm footer.inc.php |
I have just got up - and its going to take at least 2 coffees for me to just work out what the question is .... maybe later if nobody else had done it.
|
Better yet, if I rename index.php to body.php, then is there a way I can include the 3 parts ie include header.htm & body.php & footer.inc.php & name this page index.php & when visited it displays 1st header, then body.php & last footer?
|
First sending (including) an html file and then including the code you pasted (code that sends a "header('Location..."), won't work.
|
Quote:
Code:
<?php Code:
<?php |
Quote:
|
Quote:
|
Quote:
|
I tried your code & page shows header & footer, but won't display body?
This also does work for the other pages I want to use this on, but not this one specific page that has the code I have in initial post? |
contents of body.php?
|
All times are GMT -7. The time now is 07:26 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123