title: PHP form required fields error message not shown
body: <p>Why there's no error message shown in the browser window?
  (had more fields but reduced all to a minimum)
  There is just nothing happening but that it is redirecting to the 'save_entries.php'.
  I would have liked the error message in the table as first row, second column.</p>
  
  <p>The code:</p>
  
  <pre><code>&lt;?php
  session_start();
  
  if ($_SERVER['REQUEST_METHOD'] == 'POST') {
      $errors   = array();
      if (empty($_POST['name']))
      {
          $errors['name'] = "Please insert your name!";
      }
      if (count($errors) == 0)
      {
          header("Location: save_entries.php");
          exit();
      }
  }
  ?&gt;
  
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;
      &lt;link type="text/css" rel="stylesheet" href="css/stylesheet.css" /&gt;
      &lt;title&gt;Guestbook&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;form action="save_entries.php" method="POST"&gt;
      &lt;div&gt;
          &lt;table class="entryForm"&gt;
              &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;/td&gt;
                  &lt;td class="error"&gt;
                      &lt;?php
                      if(isset($errorMeldung['name']))
                          echo $errorMeldung['name'];
                      ?&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td class="labels"&gt;
                      &lt;label for="name"&gt;Your Name:
                          &lt;span&gt;*&lt;/span&gt;
                      &lt;/label&gt;
                  &lt;/td&gt;
                  &lt;td class="fields"&gt;
                      &lt;input type="text" name="name" id="name"
                             value="" maxlength="64" /&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr&gt;
                  &lt;td class="labels"&gt;
                  &lt;/td&gt;
                  &lt;td class="fields"&gt;
                      &lt;input type="submit" class="submit button1"
                             value="Submit" /&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>