i am trying to upload file using the below method with the following code :
echo "<form method='POST' action='uploadfile.php?action=addok' enctype='multipart/form-data'>
<input type=\"file\" multiple=\"true\" name=\"userfile[]\" />
<input type='submit' value=' add '>
</form>";
if ($_GET['action'] == 'addok') {
echo "\$_FILES['userfile']=".count($_FILES['userfile'])."<br />\$_FILES['userfile']['name']=".count($_FILES['userfile']['name'])."<br />\$_FILES=".count($_FILES)."<br />";
}
it only returns 0 for all count. if i upload only 1 , it returns the count , otherwise .. nothing .. i'm trying to solve its issue since yesterday . can anyone please help out ?