title: how to redirect to another page after if condition is satisfied in php?
body: <p>I have used a php code for redirect to another page, but its not working.I am at loss. please help me. I am giving the code snippet.</p>
  
  <pre><code>if($row-&gt;cnt==1){
      echo "Succes.";
      // header ('Location:HomePage.php); 
      header("Location:http://localhost/library/HomePage.php");
  }
  </code></pre>