Sagr,

there's a simple way to do it using a bit of php. you'll call here the
INCLUDE function that will load the page you want .


1. First, you have to change the name of your index.html to index.php.
Then you change the menu a bit. Make all the menu links look like
this:

<a href="http://www.mypage.net/index.php?page=home";>Home</a>
<a href="http://www.mypage.net/index.php?page=about";>About us</a>
<a href="http://www.mypage.net/index.php?page=cool";>Cool stuff</a>


2. Then remove all the content from your index.php that appeared under
the menu and put it into a file, let's say it: home.inc , the content
of "about" to about.inc etc and put all the files in the main dir.

3.put this piece of code after all your menus etc, in index.php,
exactly where you need the content to be shown. this piece checks what
"page" is requested by the menu link and loads it

<?php

                if ( (isset($_GET['page'])) && ($_GET['page]!=''))

                {

                switch($_GET['page']) {

                case 'home':
                include('home.inc');
                break;

                case 'about':
                include('about.inc');
                break;

                case 'cool':
                include('cool.inc');
                break;


                }

                }


                else

                {
                        include('home.inc');
                }
        ?>


and that's it ;)

if you need it working fast please contact me:
[email protected] and i'm ready to help you out for $20

Best,
Greg

http://www.bazingadesigns.com

On 3 Gru, 11:08, Sagr <[email protected]> wrote:
> Hello, I am trying to figure out how to change only the content of the
> page......i mean when you press about us, home, services or
> whatever.....only the content should change....other remaining the
> same in the same page..........how do i do it????....pls. help me
> out....and thnx in advance.

-- 
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to