PHP Post & Redirect
<p>I have the following code which checks the post for a "no" and if it exists prints and error or if not it redirects.  It currently redirects everytime regardless of the fact the post array has 'NO' as a value.</p>

<pre><code>if($_POST["minRequirementsForm"] == '1') {
     foreach($_POST as $key =&gt; $value) { 
        if ($value == 'no') {  
            $error = 1; 
        } else { 
            header('Location: mysite.com/app-stage1.php');
        }
     }
//print_r($_POST);  
}
</code></pre>
