Sagr, best thing you can do is to ZIP your whole page and insert it here so we can guide you knowing the rest of the code, what u think?
2010/12/16 Sagr <[email protected]>: > Thanks for your support Greg, but i am getting difficulties to do what > u said. I just followed what you said. i created a new page index.php > and changed the menu i.e." <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> " > and rest as u stated. but still not working. > > > > On Dec 13, 12:38 pm, Bazinga Designs <[email protected]> wrote: >> 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] -- BAZINGA Designs http://www.bazingadesigns.com Igor Wnuk Ul. PCK 5/20 24-100 Puławy tel. 667 200 706 REGON: 060622686 NIP: 716-255-43-47 -- -- 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]
