call a template and a text file together

spadija

New Member
Messages
48
Reaction score
1
Points
0
I'd love to help, but I can't really figure out what it is you want to do.

If you're asking how to bring two php files together into one page, look up the "include" function. It lets you include the entire contents of another file in the current page. For example, if you created these pages in the same directory:
Code:
page1.php:

<p>This is page 1.</p>
Code:
page2.php: 

<p>This is page 2.</p>
Code:
page3.php: 

<?php
  include 'page1.php';
  include 'page2.php';
?>
When you view page3.php, you should see
Code:
<p>This is page 1.</p>
<p>This is page 1.</p>

If that didn't answer your question, could you try rephrasing it a little?
 

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
you will actually see

Code:
<p>This is page 1.</p>
<p>This is page 2.</p>

just a typo he made.
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
In the example mentioned, there is only one template loaded. However, we would help more if you would rephrase your question.
 

bnrj_sjy

New Member
Messages
18
Reaction score
0
Points
0
what i meant to say is by the link
calcuttatelephones.com/new-template.html?pg=/cdma_datacard2689.shtml

u see the link
here upto the portion .....template.html?pg= is remaining same for all the page
what is changing is the rest of the portion cdma_datacard2689.shtml

for every page u load only the end portion changes and template remains same but the content change

i want to make a universal template and multiple files so that when the user click on a link like above the template remain same but the content changes

and when user click on any other link template remains same but the content changes with the user click

thanks a lot for the helps
 
Last edited:
Top