Php 文件上载时未定义索引

Php 文件上载时未定义索引,php,file-upload,Php,File Upload,我有下一个代码: 这在其他页面上非常有效。但不是在这个问题上 <tr><td>Upload Terms and Condition <br />(pdf, doc, docx, xls, txt)</td> <td><input type = "file" name = "termspdf" id = "termspdf"/></td> </tr> 注意:未定义索引:termspdf in

我有下一个代码:

这在其他页面上非常有效。但不是在这个问题上

<tr><td>Upload Terms and Condition <br />(pdf, doc, docx, xls, txt)</td>
    <td><input type = "file" name = "termspdf" id = "termspdf"/></td>
</tr>
注意:未定义索引:termspdf in /第25行的home/user678/public_html/users/_edit.php

我得到任何结果。有什么不对劲

print "<pre>";
    print_r($_FILES);
    print "</pre>"; 
print”“;
打印(美元文件);
打印“”;
没什么


谢谢

您的表单可能不是多部分表单:


可能您的文件太大了?
请参见php.ini
upload\u max\u filesize
和post\u max\u size中的


此外,您还可以检查
$\u文件['termspf']['error']

以及。。。所有其他字段都已正确上载。您是否碰巧有另一个带有
name=“termspf”
的字段?我已检查了所有网站。没有任何name=“termspf”字段。。很奇怪,谢谢你们的回答。。。SOLVED action=“/user.php?do=edit”--错误的操作标记检查输入类型“file”是否在表单元素中?
print "<pre>";
    print_r($_FILES);
    print "</pre>"; 
<form enctype="multipart/form-data" action= "<?=BASE_URL?>/user.php?do=edit" method="POST">