title: Empty $_POST array in PHP 5.2.6 / IIS CGI
body: <p>I am running into a very strange issue with PHP 5.2.6 w/ IIS on Windows XP (have tried both CGI and ISAPI). I am running a fresh installation with the default php.ini settings. </p>
  
  <p>First, assume the following (ugly, but effective) HTML code:</p>
  
  <pre><code>&lt;form action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;" method="post"&gt;
  &lt;input type="hidden" name="test1" value="foo" /&gt;
  &lt;input type="hidden" name="test2" value="bar" /&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;
  &lt;br /&gt;&lt;br /&gt;
  &lt;pre&gt;
  &lt;?php print_r($_POST); ?&gt;
  &lt;/pre&gt;
  </code></pre>
  
  <p>When the form is submitted, I expect it to bring out an array containing the two hidden variables. Instead all I see is an empty array. If I change the form method to "get" and change print_r($_POST) to print_r($_GET), I see the array items with no problem.</p>
  
  <p>I have tried variations such as <code>&lt;?php print file_get_contents('php://input'); ?&gt;</code> and <code>&lt;?php echo print_r($HTTP_POST_VARS); ?&gt;</code> to no avail. Any ideas where the problem might lie?</p>