title: Is it valid to have multiple headers in the same PHP using if-else conditions?
body: <p>if want a single PHP file to reirect to different pages according to different conditions say depending on the outcome of a post..</p>
  
  <pre><code>if(condition 1) {
      header("Location: page1.php");
      exit;
  }
  else if(condition 2) {
      header("Location: page2.php");
      exit;
  }
  else {
      header("Location: page3.php");
      exit;
  }
  </code></pre>