How can I connect master page to another page ?

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How can I connect master page to another page ?

Post by Christopher »

Can you explain what you mean by "connect"?
(#10850)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How can I connect master page to another page ?

Post by Christopher »

I assume that by 'attach' you mean inserting the contents of one file into some place on your master page file. Use the PHP include() functionality.

another_page.php:

Code: Select all

<p>Another page.</p>
master_page.php:

Code: Select all

<html>
<body>
<h1>Master Page</h1>
<?php
include 'another_page.php';
?>
</body>
</html>
(#10850)
reena_lucknow
Forum Newbie
Posts: 1
Joined: Fri Jan 27, 2012 4:53 am

Re: How can I connect master page to another page ?

Post by reena_lucknow »

Hey mate thanks a lot for your valuable information ....It will be useful for me..
Post Reply