Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Newbie question regarding Menuing
- Matthew Baker
April 18, 2008, 6:06 pm
rate this thread
I know there are a couple of threads on this topic already--I have read
they both, but I need a little clarification on process.
I currently have a static XHTML page that consists of:
.....iframe to hold this
B a n n e r
Left | Content | Right
C o p y r i g h t
I have created a banner.php, leftbar.php and copyright.php . These
files are referenced in an index.php
<div id="weather"> <?php include("weather.php"); ?> </div>
<div id="banner"> <?php include("banner.php"); ?> </div>
<?php include("copyright.php"); ?>
<div id="menu"><?php include("menu.php"); ?></div>
<?php include(" **Changable Content Here**"); ?>
I would like to have a user click on the appropriate menu button and
have the Content div populated. What I read in the long thread on this
topic was to use <a href="index.php?content=news.php>News</a>. And now
the source of my confusion.
1) Does using this format require the creation of a page for each menu
2) The example in the thread does not tell me how the "content=" command
directs the output to the correct div.
3) Is there another way?
As a side note, this is an interim solution while I get a CMS site
designed. Unfortunately, this page is volunteer work so it only gets
attention as other realities allow.
Any assistance would be appreciated, and my apologies for not getting it
the first time...
Re: Newbie question regarding Menuing
That's a way to do it if you're using one of several CMS's. there are
many other ways. For instance, if you have individual pages, you could
just put the link to "mynewpage.php". You could create AJAX requests
also, depending on what other CMS you're using.
Remove the "x" from my email address
JDS Computer Training Corp.
- » Site moved and now php code does not appear to work
- — Next thread in » PHP Scripting Forum