Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Regular Coder
    Join Date
    Dec 2011
    Posts
    201
    Thanks
    12
    Thanked 26 Times in 26 Posts
    try pasting where <--incude header--> is

    PHP Code:
    <?php
    include("header.php");
    ?>

    Code:
    </head>
    <body style="margin:0;">
    
    
    <!--- include header --->
    
    
    <script language="javascript" src="header.html">
    </script>
    <div align="center">
    this is for the newsandevents.php file.

  2. #17
    Regular Coder
    Join Date
    Dec 2011
    Posts
    201
    Thanks
    12
    Thanked 26 Times in 26 Posts
    you can only use this include technique when your file if of PHP nature, if it is .html you will have to copy paste like we did

  3. #18
    New Coder
    Join Date
    Jun 2012
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts
    ***I tried sending this as a PM twice and i don't think it went through... so here it is again. apologies if you actually did receive this already.***

    OK i put the code where you said to, it looks like this:

    </head>
    <body style="margin:0;">
    <!--- include header --->
    <!--?php
    include("header.php");
    ?-->
    <script language="javascript" src="header.html">

    you can see the page here, it doesn't have a header.


  4. #19
    New Coder
    Join Date
    Jun 2012
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

  5. #20
    New Coder
    Join Date
    Jun 2012
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Since the header is just a bunch of images, can I put the header info in the CSS part? I just don't think that I can go through each page (i'm sure there are hundreds) and re-save each as a php and then include the header.php.

    I have an intern here who suggested including it as part of the CSS since its just images in the header. Could that work?


 
Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •