note 25170 rejected from control-structures.switch by zak
| From: | zak@php.net | Date: | Thu, 12 Sep 2002 22:55:56 +0000 |
| Subject: | note 25170 rejected from control-structures.switch by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-36609@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;
}