title: PHP Server Request Method
body: <p>I have a form in one file that I submit using method POST.  In the file to the form action, I use <code>$_SERVER['REQUEST_METHOD'] === 'POST'</code>, but doing a var dump of <code>$_SERVER['REQUEST_METHOD']</code> shows <code>'GET'</code>.  </p>
  
  <p>Any idea how this could be happening?  The form is within an iframe with <code>src = 'targetfile.php?id=30'</code> so the code looks something like this:</p>
  
  <pre><code>&lt;iframe src="targetfile.php?id=30"&gt;
      &lt;form method="post" action="targetfile.php" target="credit_results"&gt;
          &lt;input type="hidden" name="pid" id="hidden_pid" value="30" /&gt;
          &lt;input type="text" class="std_grey" name="first_name_info" id="first_name_info"/&gt;
      &lt;/form&gt;
      &lt;iframe name="credit_results" id="credit_results" scrolling="no" frameborder="0" width="960" height="1200"&gt;&lt;/iframe&gt;
  &lt;/iframe&gt;
  </code></pre>