淡月的朦胧吧 关注:3贴子:277
  • 1回复贴,共1


IP属地:黑龙江1楼2016-04-08 10:51回复
    <body>
    <script language="javascript">
    function AddRow()
    {
    var eNewRow = tblData.insertRow();
    for (var i=0;i<1;i++)
    {
    var eNewCell = eNewRow.insertCell();
    eNewCell.innerHTML = "<tr><td><input type='file' name='filelist[]' size='50'/></td></tr>";
    }
    }
    </script>
    <form action="index.php" name="myform" method="post" action="uploadfile.php" enctype="multipart/form-data" >
    <table id="tblData" width="400" border="0">
    <input name="postadd" type="hidden" value="<?php echo "http://".$_SERVER['HTTP_HOST'].$_SERVER["PHP_SELF"]; ?>
    <tr><td>文件上传列表
    <input type="button" name="addfile" onclick="AddRow()" value="添加列表" /></td></tr>
    <tr><td><input type="file" name="filelist[]" size="50" /></td></tr>
    </table>
    <input type="submit" name="submitfile" value="提交文件" />
    </form>
    </body>


    IP属地:黑龙江2楼2016-04-08 10:51
    回复