Php Include like frames

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
linux
Forum Newbie
Posts: 1
Joined: Tue May 11, 2004 9:21 am

Php Include like frames

Post 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
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post 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
Post Reply