How to pass arguments to an included file?

前端 未结 9 1979
無奈伤痛
無奈伤痛 2020-12-14 05:53

I\'m trying to make the whole section its own include file. One drawback is the title and description and keyword will be the same; I can\'t figure

9条回答
  •  忘掉有多难
    2020-12-14 06:16

    index.php:

    
    

    and header.php

    
    
    
    
    
    
    
     <?php echo $my_header ?> 
    
    
    
    

    It's not an ideal solution, but I understand it's your first steps in php.

    PS. Your Doctype doesn't match the code. I've adjusted your header html to be XHTML.

提交回复
热议问题