[PHP] Navigations - Friends Korner
Friends Korner
Discuss [PHP] Navigations in Tutorials Korner forum, in Information Technology category.
Go Back   Friends Korner > The Technology Basement > Information Technology > Tutorials Korner

Register All Albums FAQ Calendar Search Today's Posts Mark Forums Read Videos
Notices


Register Now for FREE!
Our records show you have not yet registered to our forums. To sign up for your FREE account INSTANTLY fill out the form below!

Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Birthday:      
Random Question
  I agree to forum rules 

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-01-2007
Kaleem's Avatar
UnderEstimated
 
Join Date: Apr 2006
Location: Khayalon Mein
Posts: 21,803
My Mood:
Thanks: 1,438
Thanked 2,544 Times in 956 Posts
Blog Entries: 7
Kaleem has a reputation beyond reputeKaleem has a reputation beyond repute
Kaleem has a reputation beyond reputeKaleem has a reputation beyond reputeKaleem has a reputation beyond reputeKaleem has a reputation beyond reputeKaleem has a reputation beyond reputeKaleem has a reputation beyond reputeKaleem has a reputation beyond reputeKaleem has a reputation beyond reputeKaleem has a reputation beyond reputeKaleem has a reputation beyond reputeKaleem has a reputation beyond reputeKaleem has a reputation beyond repute
Awards Showcase
Red Award Blue Award Friends Korner Medal 
Total Awards: 3
[PHP] Navigations

Code:



Description: Instead of calling files like ( index.php?str=blah ) , you could do ( index.php?SoD ) and it would print out "owns you!". You can add more strings in there, this is just an example.



   $vars = explode(",", urldecode(getenv('QUERY_STRING')));
   $v1 = array_shift($vars);
   $v2 = array_shift($vars);
   $v3 = array_shift($vars);

   switch ($v1) {
       case 'first.1': {
           print("This is v1, first string case 'file.php?first.1'.");
           break;
           }
      case 'first.2': {
      switch ($v2) {
           case 'second': {
               switch($v3) {
                   case 'third': {
                     print("This is v3, the last case 'file.php?first.2,second,third'.");
                     break;
                   }
               }
           }
       }
       }
   }
Description: This basically does what the 1st one does but with more strings and a different seperator rather than '&'. I don't really want to go into too much detail on the thread so if people are confused or need explaining, reply or PM me.

That's it for the navigation as I am not going to do the other due to they're everywhere else and I wanted to be different and show everyone this method.
__________________

Not A Thing is Forgotten, Not a Thing is Forgiven



Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
To Remove this Advertisement REGISTER with our FORUM.
-
  #2  
Old 08-09-2007
NEO's Avatar
NEO NEO is offline
Banned
 
Join Date: Aug 2007
Location: Khawabo Mein
Posts: 102
My Mood:
Thanks: 8
Thanked 37 Times in 26 Posts
NEO is an unknown quantity at this point
Send a message via MSN to NEO Send a message via Yahoo to NEO
Re: [PHP] Navigations

wow nice sharing brother
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 01-24-2008
jaan_leva's Avatar
Member
 
Join Date: Jan 2008
Posts: 58
Thanks: 4
Thanked 3 Times in 3 Posts
jaan_leva is an unknown quantity at this point
Re: [PHP] Navigations

Zabardast Janab
Thanks For Sharing
Take cArez
Allah Haffiz
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 04-16-2008
king's Avatar
Member
 
Join Date: Apr 2008
Location: Roshniyon ka shaher
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
king is an unknown quantity at this point
Re: [PHP] Navigations

nice sharing bro
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
navigations, php


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On

Forum Jump


All times are GMT +6. The time now is 02:17 AM.

Powered by vBulletin® Version 3.8.0 Beta 1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006 - 08 FriendsKorner.com


< Urdu Dictionary - FK Urdu Blogs - Photo Gallery >