# PHP Template Question

**URL:** <https://forum.kirupa.com/t/php-template-question/209628>\
**Category:** programming\
**Created:** [December 11, 2006, 1:09am UTC](https://forum.kirupa.com/t/php-template-question/209628 "2006-12-11T01:09:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seth\_aldridge](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@seth\_aldridge](https://forum.kirupa.com/u/seth_aldridge)\
**Post date:** [December 11, 2006, 1:09am UTC](https://forum.kirupa.com/t/php-template-question/209628/1 "2006-12-11T01:09:06Z")

</div>

Hi,

I am working on a new website and I am trying to teach myself some PHP to make this whole process easier. I am trying to create one master PHP template that will use variables to call the different HTML pages that will house the content.

Here is a very basic example of what I need it to do:

```auto

<body> 
 
<!-- Navigation with PHP Variable rather than links --> 
<a href=" PHP Variable ">Home</a> 
 
<!-- Body where the variables will load --> 
<?php ( Call the Variable ); ?> 
 
</body> 
 

```

Then the HTML file would be:

```auto

<div class="ClassName"> 
 
Content for the Home Page 
 
</div> 
 

```

I just need to know what to put there. I understand the basics behind it, but I don’t know what to call it or how to grab the HTML files that will house the content area. I also need to have the home page load by default.

Hopefully this is fairly painless.

Thanks,  
Seth
