php - POST array is empty when containing a file -
i have simple html form containing file input. when form submitted without file, printing $_post
array shows me of data submitted. when file submitted, however, $_post
doesn't print out of submitted data.
can tell me why? code:
<?php print_r($_post); ?> <form action="test.php" method="post" enctype="multipart/form-data"> <label for="myfile">video file:</label> <input type="file" name="myfile" /> <br /><br /> <label for="mytitle">title:</label><br /> <input type="text" name="mytitle" size="55" maxlength="60" /> <br /><br /> <input type="submit" name="mysubmit" value="submit video approval" /> </form>
your script seems fine. please check server configuration. perhaps exceed post limits (set post_max_size in php.ini)
Comments
Post a Comment