title: $_POST, $_GET and $_REQUEST Empty
body: <p><strong>SOLVED</strong>: I omitted the name attribute on the input fields. 
  I have a simple html/php -form. And I submit it. The $_POST is always empty. If I try a get then the GET is always empty. Same for $_REQUEST and php://input. I get nothing in return. </p>
  
  <p>There a lot of posts with this subject, yet I have not found the solution for my problem. I do not have a rewrite or redirect. The method_request is POST. There is no clash with id's in the form,
  php://input is empty as well, REQUEST is empty as well. I have put Suhosin.simulation to on, which means that it is not working. POST_MAX_SIZE = 16M. Should be sufficient for two small texts. </p>
  
  <p>The php.ini variables request_order and variable_order are GP and GPS respectively. Magic_quotes_gpc is Off. Default mime-type = text/html and every page has charset UTF-8.
  Result of the function php_sapi_name() is apache2handler.</p>
  
  <p>PHPVersion = 5.3, Suhosin - patch 0.9.1. OS = Ubuntu 12.04 LTS, Apache = 2.2.22.</p>
  
  <p>Here are two files. I have simplified them a little, but normally they work without any problem. I have similar files for the GET-method.</p>
  
  <pre><code>&lt;?php
  
  $tmpHeader = "&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;\n";
  $tmpHeader .= "&lt;meta charset=\"UTF-8\"&gt; &lt;meta http-equiv=\"Content-Type\" content=\"application/x-www-form-urlencoded; charset=utf-8\"&gt;\n";
  $tmpHeader.= "&lt;title&gt;testPost&lt;/title&gt;\n";
  $tmpHeader.= "&lt;link rel=\"stylesheet\" href=\"/css/layout.css\"&gt;\n";
  $tmpHeader.= "&lt;link rel=\"stylesheet\" href=\"/css/semantics.css\"&gt;\n";
  $tmpHeader.= "&lt;link rel=\"stylesheet\" href=\"/css/defaults.css\"&gt;\n";
  $tmpHeader.="&lt;/head&gt;";
  
  $tmpBody = "&lt;body id=\"defaultBody\"&gt;&lt;section id=\"page\"&gt;\n";
  $tmpBody .= "&lt;div id=\"container\"&gt;\n";
  $tmpBody .= "&lt;form id=\"pagewrap\" name=\"pagewrap\" method=\"POST\" action=\"http://www.thuis.lb/testPost_2.php\" enctype=\"application/x-www-form-urlencoded\"&gt;\n";
  $tmpBody .= "&lt;input type=\"hidden\" id=\"context_id\" value=\"testPost\"&gt;\n";
  $tmpBody.="&lt;header id=\"pageHeader\"&gt;\n";
  $tmpBody.="&lt;div id=\"leftHeader\"&gt;&lt;img src=\"".clientSideImages."Homerus.jpg\" alt=\"homerus\"&gt;&lt;/div&gt;\n";
  $tmpBody.="&lt;div id=\"centralHeader\"&gt;&lt;h1&gt;Slogan&lt;/h1&gt;&lt;/div&gt;\n";
  $tmpBody.="&lt;/header&gt;\n";
  
  $pageData = "&lt;section id=\"doc_content\"&gt;\n";
  $pageData.= "&lt;fieldset&gt;&lt;legend&gt;testPost&lt;/legend&gt;\n";
  $pageData.= "&lt;div class=\"fourcolumns_odd\"&gt;&lt;label for=\"username\"&gt;username&lt;/label&gt;&lt;/div&gt;\n";
  $pageData.= "&lt;div class=\"fourcolumns_even\"&gt;&lt;input type=\"text\" id=\"username\" value=\"\"&gt;&lt;/div&gt;\n";
  $pageData.= "&lt;div class=\"fourcolumns_odd\"&gt;&lt;label for=\"password\"&gt;password&lt;/label&gt;&lt;/div&gt;\n";
  $pageData.= "&lt;div class=\"fourcolumns_even\"&gt;&lt;input type=\"text\" id=\"password\" value=\"\"&gt;&lt;/div&gt;\n";
  $pageData.= "&lt;div class=\"onecolumn\"&gt;&lt;input type=\"submit\" id=\"submitButton\" value=\"inloggen\"&gt;&lt;/div&gt;\n";
  $pageData.= "&lt;/fieldset&gt;\n";
  $pageData.= "&lt;input type=\"hidden\" id=\"passwordHash\" value=\"\"&gt;\n";
  $pageData.="&lt;/section&gt;&lt;!--end of section doc_content --&gt;\n";
  $tmpBody .= "&lt;div id=\"leftWing\"&gt;&lt;img src=\"".clientSideImages."IronPillarDelphi.jpg\" alt=\"homerus\"&gt;&lt;/div&gt;\n";
  $tmpBody.= "&lt;div id=\"centerField\" class=\"centerVertically\"&gt;".$pageData."&lt;/div&gt;\n";
  $tmpBody.= "&lt;div id=\"rightWing\"&gt;&lt;img src=\"".clientSideImages."IronPillarDelphi.jpg\" alt=\"homerus\"&gt;&lt;/div&gt;\n";
  $tmpBody.="&lt;/form&gt;\n";
  $tmpBody.= "&lt;/div&gt;&lt;!-- end of container --&gt;\n";
  $tmpBody.="&lt;/section&gt;&lt;!-- end of page --&gt;\n";
  $tmpBody.="&lt;/body&gt;&lt;/html&gt;\n";
  
  logStatement('requestheaders: ');
  $testpostdata = file_get_contents("php://input");
  log_r($testpostdata);
  
  print $tmpHeader.$tmpBody;
  ?&gt;
  </code></pre>
  
  <p>The other file to which the $_POST data should be sent:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;
  &lt;meta charset="UTF-8"&gt; &lt;meta http-equiv="Content-Type" content="application/x-www-form-urlencoded; charset=utf-8"&gt;
  &lt;title&gt;testPost_II&lt;/title&gt;
  &lt;link rel="stylesheet" href="/css/layout.css"&gt;
  &lt;link rel="stylesheet" href="/css/semantics.css"&gt;
  &lt;link rel="stylesheet" href="/css/defaults.css"&gt;
  &lt;/head&gt;&lt;body id="defaultBody"&gt;&lt;section id="page"&gt;
  &lt;div id="container"&gt;
  &lt;form id="pagewrap" name="pagewrap" method="POST" action="http://www.thuis.lb/testPost.php" enctype="application/x-www-form-urlencoded"&gt;
  &lt;header id="pageHeader"&gt;
  &lt;div id="leftHeader"&gt;&lt;img src="/images/Homerus.jpg" alt="homerus"&gt;&lt;/div&gt;
  &lt;div id="centralHeader"&gt;&lt;h1&gt;Slogan&lt;/h1&gt;&lt;span&gt;Special for &gt;&lt;?php print getValue('username','nothing found');?&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;/header&gt;
  &lt;div id="leftWing"&gt;&lt;img src="/images/IronPillarDelphi.jpg" alt="homerus"&gt;&lt;/div&gt;
  &lt;div id="centerField" class="centerVertically"&gt;&lt;section id="doc_content"&gt;
  &lt;input type="text" id="context_id" value="&lt;?php var_dump($_POST);?&gt;"&gt;
  &lt;fieldset&gt;&lt;legend&gt;testPost_2&lt;/legend&gt;
  &lt;div class="fourcolumns_odd"&gt;&lt;label for="username"&gt;username&lt;/label&gt;&lt;/div&gt;
  &lt;div class="fourcolumns_even"&gt;&lt;input type="text" id="username" value="&lt;?php print     getValue('username','Noname');?&gt;"&gt;&lt;/div&gt;
  &lt;div class="fourcolumns_odd"&gt;&lt;label for="password"&gt;password&lt;/label&gt;&lt;/div&gt;
  &lt;div class="fourcolumns_even"&gt;&lt;input type="text" id="password" value="&lt;?php echo getValue('password','Secret');?&gt;"&gt;&lt;/div&gt;
  &lt;div class="fourcolumns_odd"&gt;&lt;label for="request_method"&gt;request method&lt;/label&gt;&lt;/div&gt;
  &lt;div class="fourcolumns_even"&gt;&lt;input type="text" id="username" value="&lt;?php print $_SERVER['REQUEST_METHOD'];?&gt;"&gt;&lt;/div&gt;
  &lt;div class="onecolumn"&gt;&lt;input type="submit" id="submitButton" value="inloggen"&gt;&lt;/div&gt;
  &lt;/fieldset&gt;
  &lt;/section&gt;&lt;!--end of section doc_content --&gt;
  &lt;/div&gt;
  &lt;div id="rightWing"&gt;&lt;img src="/images/IronPillarDelphi.jpg" alt="homerus"&gt;&lt;/div&gt;
  &lt;/form&gt;
  &lt;/div&gt;&lt;!-- end of container --&gt;
  &lt;/section&gt;&lt;!-- end of page --&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>www.thuis.lb is a name of a local server. It has IP 127.0.0.1. Thuis is Dutch for at home.
  Is there anything that I have forgotten or that I am doing wrong?</p>
  
  <p>EDIT: Some more information.
  In the more complex first php there is an exchange of information with a database. That works like a charm. No problem at all. 
  Therefor do I think that the problem is a security issue. I will add the virtual host file for www.thuis.lb. Although it is almost like the default virtualhost, it might be the problem.</p>
  
  <pre><code>&lt;VirtualHost thuis.lb:80&gt;
      ServerName www.thuis.lb
      ServerAlias thuis.lb *.thuis.lb
      ServerAdmin lbergman@loekbergman.nl
      DocumentRoot /var/www/thuis
      RewriteEngine On
      RewriteOptions Inherit
  
  &lt;Directory /var/www/thuis/&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
  &lt;/Directory&gt;
  
  ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  &lt;Directory "/usr/lib/cgi-bin"&gt;
      AllowOverride None
      Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
      Order allow,deny
      Allow from all
  &lt;/Directory&gt;
  
  ErrorLog /var/log/apache2/thuis/error.log
  
  # Possible values include: debug, info, notice, warn, error, crit,
  # alert, emerg.
  LogLevel debug
  
  CustomLog /var/log/apache2/thuis/access.log combined
  
  Alias /doc/ "/usr/share/doc/"
  &lt;Directory "/usr/share/doc/"&gt;
      Options Indexes MultiViews FollowSymLinks
      AllowOverride None
      Order deny,allow
      Deny from all
      Allow from 127.0.0.0/255.0.0.0 ::1/128
  &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>EDIT II: I can add more information. In the access log there is for instance this line:
  127.0.0.1 - - [04/Apr/2013:11:13:43 +0200] "POST /testPost_2.php HTTP/1.1" 200 2020 "<a href="http://www.thuis.lb/testPost.php" rel="nofollow">http://www.thuis.lb/testPost.php</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0". That shows imo that apache2 is receving the post in good order. But the $_POST in PHP is still completely empty.
  In the display of Firebug>Net>Headers is Content Length 0.</p>