Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 07-13-2006, 06:21 PM Php modules
Extreme Talker

Posts: 217
Trades: 0
You know how some sites are like this: domain.com/index.php?module=blah

I was wondering how you make it like that. Make it so that depending on what the module is it displays different stuff. I tried finding some tutorials on it but couldnt find any.
Slick Nick is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-13-2006, 10:29 PM Re: Php modules
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Its rather easy really...

PHP Code:
<?php
  
  
switch ($_GET['module']) {
    
    case 
'blah':
      
// Do something here
      
break;
      
    case 
'gab':
      
// Do something else here
      
break;
      
    case 
'yuk':
      
// Do something different here
      
break;
      
    default:
      
// Do something here if none others above were true
  
}
  
?>
Data transferred through the url is defined in the $_GET global variable as an array. However, you might need to learn more on php in order to perform the specific tasks you want.

Good PHP tutorials can be found at:
www.w3schools.com
www.htmlgoodies.com
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-13-2006, 10:54 PM Re: Php modules
Extreme Talker

Posts: 217
Trades: 0
cool thanks
Slick Nick is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Php modules
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21412 seconds with 12 queries