<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<body>


<form action="" method="post" enctype ="multipart/form-data">
<input  name="UpLoadFile[]" type="file" value="1"/>
<input  name="UpLoadFile[]" type="file" value="2"/>
<input  name="UpLoadFile[]" type="file" value="3"/>



<input  name="aa[]" type="hidden" value="2"/>
<input  name="aa[]" type="hidden" value="3"/>


<input type="submit" name="Button1" value="Button" />
</form>


</body>
</html>



<?php

print_r($_FILES['UpLoadFile']);

$arr = array();

if(!empty($_FILES['UpLoadFile'])){
    


    foreach($_FILES['UpLoadFile'] as $k=>$v){
        foreach($v as $kk=>$vv){
            if($kk==$kk){
                $arr[$kk][$k] = $vv;
            };
        }
    }
    print_r($arr);
    exit();
}


print_r($_POST);
print_r($_FILES);

?>

相关文章:

  • 2021-08-18
  • 2022-02-02
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2022-03-04
猜你喜欢
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-08-15
  • 2021-12-23
相关资源
相似解决方案