how to redirect to onother page after if condition is satified in php?
<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>
