Jump to content

add php page in a div in another php page ?


friedice

Recommended Posts

Are you trying to create a type of frame?

 

Take a look at the include() function. It allows you to include one file in another file.

 

http://php.net/manual/en/function.include.php

 

In your index.php file you would have a line that says:

 

<?php

include("content.php");

?>

 

I would use require('page.php'); instead of the include() function - just a note.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.