title: Can't access form data in PHP
body: <p>I'm not a novice, but I'm not an expert either; I'm a keen learner.</p>
  
  <p>Problem (minimalised) - I have a basic form which posts a name to another page which is supposed to receive name and print name. Code of both forms is below.</p>
  
  <p>Form:</p>
  
  <pre><code>&lt;?php
      echo "Hello, World!";
      echo "
          &lt;form action='CFAcomments.php' method='POST'&gt;
              &lt;table style='width: 50%;' border='0'&gt;
                  &lt;tbody&gt;
                      &lt;tr&gt;
                          &lt;td&gt;&lt;label for='name'&gt;name: &lt;/label&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;input type='Text' name='name' value='anon' /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;&lt;input type='submit' name='send' value='Send' /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/tbody&gt;
              &lt;/table&gt;
          &lt;/form&gt;
      ";
  ?&gt;
  </code></pre>
  
  <p>Form Process:</p>
  
  <pre><code>&lt;?php
      echo "Hello, World 1!";
      echo "&lt;br/&gt;";
      var_dump($_POST);
      $name = $_POST("name");
      echo "Hello $name!";
  ?&gt;
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>Hello, World 1!
  array(2) { ["name"]=&gt; string(11) "anon" ["send"]=&gt; string(4) "Send" }
  </code></pre>
  
  <p>Problem:</p>
  
  <p>Even though var_dump($_POST) shows data being sent, <code>echo $name</code> print nothing. Changing <code>echo $name</code> to <code>echo "test"</code> prints nothing too. The code seems to stop executing at <code>$name = $_post("name");</code>. If I remove this line <code>echo "anything"</code> works.</p>
  
  <p>I've used PHP and forms for the last two years and never come across this. Any help would be appreciated.</p>