html - php empty post array with file upload -


<form method="post" enctype="multipart/form-data">         <h3>add video</h3>         <div class="field_wrap">         <p>name</p>         <input type="text" name="title"/>         </div>         <div class="field_wrap">         <p>video</p>         <input name="video" type="file" />         </div>         <p><button>add</button></p> </form> 

this form use upload video file , title, when don't upload file $_post variable filled form data, if upload file $_post variable empty, why that?

you looking in wrong spot, try looking in $_files not $_post


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -