Page 1 of 1
Keeping the nav bar
Posted: Sun Nov 03, 2002 6:25 am
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.
Posted: Sun Nov 03, 2002 8:55 am
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.