check whether a $_POST exists and value
<p>i am trying to check if $_POST exists and check only for a specific value. in my code i am trying to check for data header=h1. the code works, it checks for data header but i do not know how to specify for value of header i.e check for header=h1</p>

<pre><code>if ($_POST['data']['header']){
            $myBuildPath = Config::$buildPath.Users::$userid.'/'.$item[$this-&gt;mainModel-&gt;primaryKey].'/';
                foreach (Config::$repository['headersCustomDest'] as $file =&gt; $fileDestPath){
                    $dest_file = $myBuildPath.$fileDestPath;

                    if(file_exists($file)) full_copy($file,$dest_file);
                    else echo $file.' does not exist.';
                }
</code></pre>

<p>all assistance appreciated...thanx!</p>
