Page 1 of 1

Php Include like frames

Posted: Tue May 11, 2004 9:21 am
by linux
Hello,

I was wondering if I could use the php Inlcude function like frames.

If I have some content on the left and I click on a link (target: right), can I display the right page, without losing the content on the left?

- Linux

Posted: Tue May 11, 2004 9:32 am
by Draco_03
non include is not like a function..
but IN your include you could have html frame written..
but the include alone only take your whole code and past it

Code: Select all

page1

Code: Select all

echo("I am very sexy");

Code: Select all

page2

Code: Select all

include("page1.php");
<a href="#">testing</a>
you could have whatever u want

Code: Select all

Result

Code: Select all

I am very sexy
<a href="#">testing</a>
you could have whatever u want