个 笨那  在上传的时候  用 for each in 把INPUT VALUES 都给上传就行了,FORM里面的NAME 无所谓了

解决方案 »

  1.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head>
    <form name="form1" action="upload.php" method="post" enctype="multipart/form-data">
    <input name="upfiles0"  id="upfiles0" type="file" size="40" maxlength="100" onChange="get_name(this)"><br>
    <input name="upfiles1"  id="upfiles1" type="file" size="40" maxlength="100" onChange="get_name(this)"><br>
    </form>
    <input type="button" value="获取upfiles1的值"  onClick="get_name1()">
    <script language="javascript">
    function get_name(f)
    {
    alert(f.value);
    }
    function get_name1()
    {
    alert(form1.upfiles1.value);
    }</script>
    <body>
    </body>
    </html>