View Full Version : How to call menu from single file to multiple pages?

07-14-2007, 04:15 AM
How do I call a single file to multiple pages?

I want to be able to change my links from a file I call column_left.php to a lot of different html pages. How do I do this?

07-14-2007, 11:50 AM
If they're HTML pages, you can't really do this unless you use iFrames.
Now, if you change these files to PHP files, you can just include column_left.php:


07-14-2007, 02:52 PM
save the files with php extensions so that it looks like file.php as opposed to file.html and enclose the include line so that it looks like this:


Make sure you create a file called http://www.column_left.php that has the info you want to go to all of your other files that has the 'include' as well.

I hope that helps.

07-15-2007, 07:55 PM
Sorry about the cross-post, James.

Should be 'column_left.php', though, not 'http://www.column_left.php'...

08-02-2007, 03:57 PM
Thank you both sooo much for the reply. I will try your suggestion.