title: understanding method post with forms
body: <p>so i am new to php and i was wondering what im doing wrong or what i dont really understand.</p>
  
  <p>I have made a form with method post like so</p>
  
  <pre><code>  &lt;form method="post"&gt;
     &lt;table&gt;
          &lt;tr&gt;
              &lt;td&gt;Vorname&lt;/td&gt;
              &lt;td&gt;&lt;input type="text" name="vorname"&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Nachname&lt;/td&gt;
              &lt;td&gt;&lt;input type="text" name="nachname"&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;PLZ&lt;/td&gt;
              &lt;td&gt;&lt;input type="number" name="plz"&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
      &lt;button type="submit" name="send"&gt;Send&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>In my index.phtml.</p>
  
  <p>When i try to do something simple like so </p>
  
  <pre><code>   &lt;?php
        if (isset($_POST['send'])) {
            echo "Send is Pressed!";
         }
      ?&gt;
  </code></pre>
  
  <p>It does not work, and i feel like i am missing some simple step which i just don't understand. </p>
  
  <p>My expectation is when i press send that the text "Send is Pressed!" appears...which it does not.</p>
  
  <p>Not even dumping  <code>var_dump($_POST)</code> the Post method, is working...</p>
  
  <p>So i must be missing something..</p>
  
  <p>EDIT, :</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
  
  &lt;form method="post" action="index.phtml"&gt;
     &lt;table&gt;
          &lt;tr&gt;
              &lt;td&gt;Vorname&lt;/td&gt;
              &lt;td&gt;&lt;input type="text" name="vorname"&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Nachname&lt;/td&gt;
              &lt;td&gt;&lt;input type="text" name="nachname"&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;PLZ&lt;/td&gt;
              &lt;td&gt;&lt;input type="number" name="plz"&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
      &lt;button type="submit" name="send"&gt;Send&lt;/button&gt;
  &lt;/form&gt;
  
  &lt;?php
     if (isset($_POST['send'])) {
         echo "asd";
     }
  
     var_dump($_POST)
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>