title: Typing an if $_POST breaks page?
body: <p>I have two pages one with the form submission and the other for the <code>PHP</code> code. I have a h1 heading written in the PHP file and works just fine. However when I add my <code>if ($_POST['submit']){}</code> statement the page doesn't display anything at all including the code that came before the statement? I have tried googling the issue but I was not able to find anything that seemed to relate. Here's my code:
  for the <code>PHP</code> page:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
     &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
     &lt;/head&gt;
     &lt;body&gt;
        &lt;?php
        echo "&lt;h1&gt;This is php!&lt;/h1&gt;&lt;br&gt;"
        if($_POST['submit']){
            echo 'form submited!';
        }
        ?&gt;
  
     &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Then my form from my html page:</p>
  
  <pre><code>&lt;form id="signUpForm" action="AddAcount2.php" method="post"&gt;
      &lt;input id="email" type="text" name="email" placeholder="Email"&gt;&lt;br&gt;
      &lt;input id="uid" type="text" name="uid" placeholder="User Name"&gt;&lt;br&gt;
      &lt;input id="password" type="text" name="password" placeholder="Password"&gt;&lt;br&gt;
      &lt;button id="signUpFormButton" type="submit" name="submit"&gt;Sign Up!&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>