Keeping the nav bar

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
liquidchild
Forum Newbie
Posts: 9
Joined: Sun Nov 03, 2002 6:25 am

Keeping the nav bar

Post by liquidchild »

Does anyone know how to keep the nav bar from reloading all the time, I am not using frames and have designed my site using css and php, but i am not sure if it is possible to have just the new body page load when a link on the navigation menu is pressed. Also have seen many sites that have for example gallery.php?content=1, is this just a switch statement in gallery.php which point to different .php, or .html files, or a link to a database table, or is there something more elegant going on here.

Thanks in advance for any help or advice.
f1nutter
Forum Contributor
Posts: 125
Joined: Wed Jun 05, 2002 12:08 pm
Location: London

Post by f1nutter »

OK, a couple of points.

What do you mean by "how to keep the nav bar from reloading"? If you are not using frames, then I guess you have the menu included on each page. (I tried to have a look at your site from your www link, but it doesn't work.) If you include the menu on each page, then the server sees each page as unique, re-drawing your menu on each load, it just happens that the menu looks the same to the user.

Where you see gallery.php?content=1, this is a way of passing variables to a page. PHP can then take whats after the question mark and places it in the $_GET array, with the array index named content, and value 1, in this case. You can then take action depending on these variables and their value.

Please add a bit more detail to your question, so we can give you a more detailed answer.
Post Reply