title: Redirect not working on server with header()
body: <p>I have used the following code for the redirect on URL, but It displaying error 500 error on the server(GoDaddy).</p>
  
  <pre><code>    &lt;form method="post" action="&lt;?php echo $_SERVER['PHP_SELF'];?&gt;"&gt;
          &lt;input type="submit" class="checkout" name="btnCheckOut" value="PROCEED TO  CHECKOUT" /&gt;
      &lt;/form&gt;
      &lt;?php
          if(isset($_POST['btnCheckOut']))
          {
              if(isset($empty))
              {
              echo "&lt;script&gt;
                  alert('your cart has been empty plese insert some items');
              &lt;/script&gt;";
              }
              else
              {
              header("location:Billing.php");
              }
          }
      ?&gt;
  </code></pre>