Jump to content

Archived

This topic is now archived and is closed to further replies.

afatkidrunnin

I need some help

Recommended Posts

I need some help with my page content.

I have a website for my clan and so I have a bunch of links, I can't create seperate pages with all the same html (wouldl be too complicated to add a new link) so I am trying out this code that makes it like a frame but not really...
the code I am using is
[code]<?php
switch($id) {
    default:
   include('home.php');
  break;  case "aboutus":
   include('aboutus.php');
  break;  case "contactus":
   include('contactus.php');
}
?>[/code]
and the url to the pages should be
[code]www.teamlunchboxx.com/index.php?id=aboutus

www.teamlunchboxx.com/index.php?id=contactus[/code]

and its not working right

I am having alot of trouble, please help me.

Share this post


Link to post
Share on other sites
[code]
<?php
switch($_GET['id']) {
    case "aboutus":
   include('aboutus.php');
  break;  
case "contactus":
   include('contactus.php');
break;

default:
   include('home.php');
  break;  
}
?>
[/code]

:)

Share this post


Link to post
Share on other sites
[!--quoteo(post=357797:date=Mar 23 2006, 06:16 PM:name=High_-_Tek)--][div class=\'quotetop\']QUOTE(High_-_Tek @ Mar 23 2006, 06:16 PM) [snapback]357797[/snapback][/div][div class=\'quotemain\'][!--quotec--]
[code]
<?php
switch($_GET['id']) {
    case "aboutus":
   include('aboutus.php');
  break;  
case "contactus":
   include('contactus.php');
break;

default:
   include('home.php');
  break;  
}
?>
[/code]

:)
[/quote]

omg thank you so much

Share this post


Link to post
Share on other sites
for a team site u could use a better site/script i have acutally made one and u could use better hosting that gives u more freedoms my aim is chriscloyd2006 my msn is ctcc8788@hotmail.com or send me a message i can help

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.