 <p>Everything inside that <code>if (isset($_FILES['picName'])and isset($_POST['submit']))</code> doesn't work because the superglobal <code>$_FILES</code> is probably not having a key named <code>picName</code>. To check this out, try <code>var_dump</code>-ing the <code>$_FILES</code>, like <code>var_dump($_FILES);</code></p> <p>By the output of the <code>var_dump</code> you'd get to know if there is any content inside <code>$_FILES</code>. And if it is populated, just see what the key name is and, access the file by using that key. </p> <p>But if the array is empty, there may be some mis-configurations in PHP, or APACHE.</p> <p>One possible fix would be setting <code>file_uploads = On</code> in the ini file for php.</p> <p>Hope it helps!</p>