lpxxfaintxx Posted March 28, 2006 Share Posted March 28, 2006 I forgot where I saw it, but I've seen scripts with like [code]$_GET['goto']case "1"include "index1.php"case "2"include "index2.php" [/code]Does anyone have a tutorial on how to use that? I'm pretty sure the code above is totally worthless. Quote Link to comment https://forums.phpfreaks.com/topic/6004-case/ Share on other sites More sharing options...
Prismatic Posted March 28, 2006 Share Posted March 28, 2006 [!--quoteo(post=359241:date=Mar 28 2006, 07:15 AM:name=lpxxfaintxx)--][div class=\'quotetop\']QUOTE(lpxxfaintxx @ Mar 28 2006, 07:15 AM) [snapback]359241[/snapback][/div][div class=\'quotemain\'][!--quotec--]I forgot where I saw it, but I've seen scripts with like [code]$_GET['goto']case "1"include "index1.php"case "2"include "index2.php" [/code]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] Quote Link to comment https://forums.phpfreaks.com/topic/6004-case/#findComment-21544 Share on other sites More sharing options...
lpxxfaintxx Posted March 29, 2006 Author Share Posted March 29, 2006 Ah, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/6004-case/#findComment-22119 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.