title: why my echo doesn't work before a header function header(location:home.php);
body: <p>why my echo doesn't work here in this code?It goes directly to the function header().</p>
  
  <pre><code>if($result){
      echo("&lt;script&gt; alert('User Successfull Added')&lt;/script&gt;");
      header('location:home.php');
  }
  </code></pre>