redirect problem in for loop in PHP
<p>i am using xajax framework</p>

<p>i want redirect my url in for loop.
every time its go to the home.php at last </p>

<p>my sample code is this</p>

<pre><code>for($i=0;$i&lt;4;$i++) {
    if($i == 1) {
        header("index.php")
    } else {
        header("home.php")
    }
}
</code></pre>
