Is it possible to replace $_POST with $_FILES 
<p>Excuse me if my english is not grammatical....</p>

<p><strong>Is it possible to replace $_POST with $_FILES ?</strong></p>

<p>In my program, i copied all information of a register form to an array</p>

<p>Like This</p>

<pre><code>$this-&gt;RegistrationFields['profile_img'] = array( 'name' =&gt; 'Image','type' =&gt; 'BLOB', 'table' =&gt; 'users', 'field' =&gt; 'profile_img');
</code></pre>

<p>and get values using foreach</p>

<pre><code>foreach( $this-&gt;RegistrationFields as $fields =&gt; $values )
</code></pre>

<p>after that it check for field is set or not</p>

<pre><code>if( ! isset( $_POST['register_' . $fields] ) || $_POST['register_' . $fields] == '' )
        {
            $this-&gt;submittedValues[ $fields ] = $_POST['register_' . $fields];
            $this-&gt;errorLabels['register_' . $fields] = 'error';
            $this-&gt;errors[] = 'Field ' . $data['name'] . ' cannot be empty';
        }
</code></pre>

<p>But the problem is that it always shows error message when uploading images,</p>

<p>I guess i have to replace the $_POST with $_FILES <strong><em>while checking image</em></strong>,</p>

<p>SO i put  </p>

<pre><code>if ($fields == 'profile_img')
{
    //replace $_POST with $_FILES   
}
</code></pre>

<p>just above the <strong>ISSET</strong> condition</p>

<p><strong>So my question is :</strong></p>

<p><strong>Is there an inbuld function to replace $_POST with $_FILES???? in *<em>PHP</em>*</strong></p>

<p><strong>EDIT : Or else i could use str_replace?</strong></p>
