note 25170 added to control-structures.switch

From: Date: Thu, 12 Sep 2002 22:30:40 +0000
Subject: note 25170 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-36607@lists.php.net to get a copy of this message
The following code works when run in Apache on Win32, but does not function correctly in IIS with PHP as CGI. Trying to run test.php displays the default case as expected. Trying to run as test.php?case=2 also displays the default case. Has anyone experienced this problem? Any solutions? ********************* switch ($case) { case 2: echo "i equals 2"; break; case 1: echo "i equals 1"; break; default: echo("i equals default"); break; } -- http://www.php.net/manual/en/control-structures.switch.php http://master.php.net/manage/user-notes.php?action=edit+25170 http://master.php.net/manage/user-notes.php?action=delete+25170 http://master.php.net/manage/user-notes.php?action=reject+25170

« previous php.notes (#36607) next »