title: how to open another php file from the php file that was invoked with ajax?
body: <p>I want to open php file using ajax:<br></p>
  
  <p><code>xhttp.open("login.php?login=me)</code><br></p>
  
  <p>I want PHP file that was called by ajax open another PHP file instead of responseText.<br> here the code:<br></p>
  
  <p><b><code>&lt;?php if($_GET['login']==="me"){
     header("location: home.php");
  }else echo "wrong name";</code></b></p>
  
  <p>the above code will work like what I want when called directly via the url, but if it called by ajax the home.php file is returned as responseText.<br>
  <strong>note: I don't want to redirect use client side</strong><br>
  ps: sorry for my bad english</p>