I can not get my form to $_POST. Does anyone have any ideas?
<?php
require_once ($_SERVER['DOCUMENT_ROOT'].'/functions/requirements.php'); 
if ($_SESSION['loggedin'] != true){
    forceRedirect('./hub.php?page=login', 0); 
    }else{
    $row = DB::queryFirstRow("SELECT status FROM app_vendor WHERE user_id=%i LIMIT 1", $_SESSION['user_id']); 
    $status = ($row['status'] - 1);
    if (isset($_POST['submit'])){
        echo "worked";
        //forceRedirect('./hub.php?page=dashboard', 0); 
        //die();
    }else{
        include ($_SERVER['DOCUMENT_ROOT'].'/vendor_template/top.php');
        function label($url,$file){
            $html =<<<EOF
                <li>
                    <img width="250" height="300" alt="---Non Viewable PDF DOCUMENT---"" src="$url" />
                        <div class="text">
                        <!-- <div class="inner">Sample Caption on Hover</div> -->                                       
                        </div>
                    <input type="text" name ="$file" id="form-field-1" placeholder="Document name" class="col-xs-10 col-sm-30"> 
                </li>
EOF;
            return $html;
        }   
    if ($documents = DB::query("SELECT name, url FROM files WHERE  user_id=%i AND status=%i",  $_SESSION['user_id'] , $row['status'])){ 
        echo '<h3> <center> Please label your documents </center> </h3>';
        echo '<form method = "POST">';
        echo '<ul class="ace-thumbnails clearfix">';
        foreach ($documents as $document){
                $file = substr($document['name'], 0, -4); 
                echo label('../'.$document['url'],$file);
        }
        echo '</ul>';
        echo '<center>';
        echo '<br>';    
        echo '<br>';
        echo '<br>';
        //echo '<button type="submit" value ="submit" class="btn btn-primary" data-toggle="button" aria-pressed="false">Submit</button>';
        echo '<input type="submit" name="sumbit" value="submit" />';
        echo '</center>';
        echo '</form>';
    }
    include ($_SERVER['DOCUMENT_ROOT'].'/vendor_template/bottom_label.php');
    }
}else{
// not logged in    
}
?>
Ask me for any questions. When I submit the form I get no return from $_POST['submit']. I hope I am missing something I over looked. Any help would be appreciated.
