Jump to content

Archived

This topic is now archived and is closed to further replies.

lpxxfaintxx

Case?

Recommended Posts

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.

Share this post


Link to post
Share on other sites
[!--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]

Share this post


Link to post
Share on other sites

×

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.