title: PHP submit button not working.
body: <pre><code>&lt;?php
  if(isset($_POST['submit'])){
  header('Location: http://www.rate.ee');
  }
  ?&gt;
  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
          "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;
          &lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;input type="submit" name="submit" id="submit" class="button" value="Submit"/&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is my code. Very simple, isn't it. But it doesn't work and I don't get it.. I always thought that PHP only executes when I load the page, but the other page where I use same code works very well without JS..</p>