phpComplete homepage navigation

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
CrazyJimmy
Forum Commoner
Posts: 34
Joined: Tue Nov 19, 2002 1:40 pm

phpComplete homepage navigation

Post by CrazyJimmy »

I noticed that regardless of what link on the navbar is clicked, the navbar still remains as does the users online part at right hand side but the content changes. I want to implement this on my site instead of frames and am looking for some advice on how to do it

Thanks
cctrax
Forum Commoner
Posts: 36
Joined: Thu Jul 11, 2002 9:05 pm
Location: United States
Contact:

Post by cctrax »

Ummm...there are quite a few different ways you can go about this one.

Personally, when ever I made an area for links, etc that I want to keep from page to page, I find it easier to place the code in a new file, and just use the include function to pull it into text. For example:

Code: Select all

<?php

include "header.php";

?>
Nothing difficult. As for the user login information, etc - I would suggest using a session to keep the information intact. Even if you leave the page, as long as the session variables are defined at the top of the page, all is good with the world.
Post Reply