Jump to content

I need some help


afatkidrunnin

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.
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.