Jump to content


Photo

I need some help


  • Please log in to reply
3 replies to this topic

#1 afatkidrunnin

afatkidrunnin
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 23 March 2006 - 11:02 PM

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
<?php
switch($id) {
    default:
   include('home.php');
  break;  case "aboutus":
   include('aboutus.php');
  break;  case "contactus":
   include('contactus.php');
}
?>
and the url to the pages should be
www.teamlunchboxx.com/index.php?id=aboutus

www.teamlunchboxx.com/index.php?id=contactus

and its not working right

I am having alot of trouble, please help me.

#2 High_-_Tek

High_-_Tek
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts

Posted 23 March 2006 - 11:16 PM

<?php
switch($_GET['id']) {
    case "aboutus":
   include('aboutus.php');
  break;  
case "contactus":
   include('contactus.php');
break;

default:
   include('home.php');
  break;  
}
?>

:)

#3 afatkidrunnin

afatkidrunnin
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 23 March 2006 - 11:23 PM

[!--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) View Post[/div][div class=\'quotemain\'][!--quotec--]
<?php
switch($_GET['id']) {
    case "aboutus":
   include('aboutus.php');
  break;  
case "contactus":
   include('contactus.php');
break;

default:
   include('home.php');
  break;  
}
?>

:)
[/quote]

omg thank you so much


#4 chriscloyd

chriscloyd
  • Members
  • PipPipPip
  • Advanced Member
  • 489 posts
  • LocationArizona

Posted 24 March 2006 - 07:05 AM

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
44 bugs in my java code
44 bugs in my java code
Fix 1 bug, and complie again
122 bugs in my java code




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users