View Full Version : How to call menu from single file to multiple pages?
GeneralB
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?
alexjewell
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:
include('column_left.php');
james438
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:
<?php
include('column_left.php');
?>
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.
alexjewell
07-15-2007, 07:55 PM
Sorry about the cross-post, James.
Should be 'column_left.php', though, not 'http://www.column_left.php'...
GeneralB
08-02-2007, 03:57 PM
Thank you both sooo much for the reply. I will try your suggestion.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.