Jump to content


Photo

Case?


  • Please log in to reply
2 replies to this topic

#1 lpxxfaintxx

lpxxfaintxx
  • Members
  • PipPipPip
  • Advanced Member
  • 181 posts

Posted 28 March 2006 - 12:15 PM

I forgot where I saw it, but I've seen scripts with like

$_GET['goto']

case "1"

include "index1.php"

case "2"

include "index2.php"

Does anyone have a tutorial on how to use that? I'm pretty sure the code above is totally worthless.

#2 Prismatic

Prismatic
  • Members
  • PipPipPip
  • Advanced Member
  • 503 posts
  • LocationSan Diego

Posted 28 March 2006 - 12:25 PM

[!--quoteo(post=359241:date=Mar 28 2006, 07:15 AM:name=lpxxfaintxx)--][div class=\'quotetop\']QUOTE(lpxxfaintxx @ Mar 28 2006, 07:15 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
I forgot where I saw it, but I've seen scripts with like

$_GET['goto']

case "1"

include "index1.php"

case "2"

include "index2.php"

Does anyone have a tutorial on how to use that? I'm pretty sure the code above is totally worthless.
[/quote]


[a href=\"http://www.php.net/switch\" target=\"_blank\"]http://www.php.net/switch[/a]

#3 lpxxfaintxx

lpxxfaintxx
  • Members
  • PipPipPip
  • Advanced Member
  • 181 posts

Posted 29 March 2006 - 10:32 PM

Ah, thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users