Hi all. I have been trying to figure out what is going on with my code but I am stumped. It's a simple upload script but for some reason, when I do the empty test and the bool error test, they are returning empty and false and I do not understand why.

Any help is appreciated

<form class='admin_form' action='' method='POST' enctype='multipart/form-data'>
                        <h2>Comic Page Upload</h2>
                        <label for='comic_page'>Filename</label>
                        <input type='file' name='comic_page' id='comic_page'>
                        <input type='submit' name='comic_page_btn' value='Upload'>
                        <span id='comic_page_upl_err_msg'>".$err_msg."</span>
PHP Code
        if((!empty($_FILES['comic_page'])) && ($_FILES['comic_page']['error'] == 0)) {  
                //Do all the stuff to upload file
                // Didn't add the code that goes here since it's not the issue, at least not yet
              echo "Error: No file uploaded";
              // This is the output because the array is empty and the error array is false(== 0).